-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
82 lines (77 loc) · 2.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
app:
container_name: ${PROJECT_NAME}-app
image: dersonsena/php-nginx-dev
volumes:
- ./:/var/www/html
environment:
- XDEBUG_START_WITH_REQUEST=yes
- XDEBUG_DISCOVER_CLIENT_HOST=false
ports:
- '${DOCKER_APP_PORT}:80'
- '${DOCKER_APP_PORT_SSL}:443'
networks:
- clear-arch-pokemon-network
depends_on:
- mysql
- postgres
mysql:
image: mysql:5.7
container_name: ${PROJECT_NAME}-db
command: --default-authentication-plugin=mysql_native_password --explicit_defaults_for_timestamp=1
restart: always
ports:
- "${DOCKER_MYSQL_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
networks:
- clear-arch-pokemon-network
volumes:
- ./.docker/mysql:/etc/mysql/conf.d
- ./.docker/data/mysql:/var/lib/mysql
postgres:
container_name: `${PROJECT_NAME}-db-postgres`
image: postgres:11
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME_POSTGRES}
POSTGRES_PASSWORD: ${DB_PASSWORD_POSTGRES}
PGDATA: /data/postgres
volumes:
- ./.docker/data/postgres:/data/postgres
ports:
- "${DOCKER_POSTGRES_PORT}:5432"
networks:
- clear-arch-pokemon-network
restart: unless-stopped
pgadmin:
container_name: `${PROJECT_NAME}-db-pgadmin`
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- ./.docker/data/pgadmin:/root/.pgadmin
- ./pg_storage:/var/lib/pgadmin/storage
ports:
- "${DOCKER_PGADMIN_PORT}:80"
networks:
- clear-arch-pokemon-network
restart: unless-stopped
redis:
container_name: ${PROJECT_NAME}-redis
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
image: redis:4.0-alpine
ports:
- "${DOCKER_REDIS_PORT}:6379"
networks:
- clear-arch-pokemon-network
volumes:
- ./.docker/data/redis:/data
depends_on:
- app
networks:
clear-arch-pokemon-network:
driver: bridge