-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·77 lines (72 loc) · 2.23 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
services:
nginx:
image: ${COMPOSE_PROJECT_NAME}-nginx:latest
build:
context: ./docker/
args:
BUILD_ARGUMENT_ENV: dev
dockerfile: ./nginx/Dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-nginx
restart: 'no'
ports:
- "${WEB_PORT_HTTP}:80"
- "${WEB_PORT_SSL}:443"
volumes:
- ./:/var/www/html:ro,cached
depends_on:
- symfony
networks:
- symfony
symfony:
image: ${COMPOSE_PROJECT_NAME}-symfony:latest
build:
context: .
args:
BUILD_ARGUMENT_ENV: dev
HOST_UID: ${HOST_UID}
HOST_GID: ${HOST_GID}
XDEBUG_CONFIG: ${XDEBUG_CONFIG}
XDEBUG_VERSION: ${XDEBUG_VERSION}
dockerfile: ./Dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-symfony
restart: 'no'
volumes:
- ./:/var/www/html:cached
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
PHP_IDE_CONFIG: "serverName=instabot"
depends_on:
- mysql
- mail
networks:
- symfony
mysql:
image: mysql:${MYSQL_VERSION}
platform: linux/x86_64
container_name: ${COMPOSE_PROJECT_NAME}-mysql
restart: 'no'
command: --innodb-use-native-aio=${INNODB_USE_NATIVE_AIO:-1} --sql_mode=${SQL_MODE:-"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"}
environment:
MYSQL_USER: instabot
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: instabot
ports:
- "3306:3306"
volumes:
- ./var/mysql-data:/var/lib/mysql:delegated
- ./docker/dev/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
networks:
- symfony
mail:
image: axllent/mailpit:latest
container_name: ${COMPOSE_PROJECT_NAME}-mail
restart: 'no'
ports:
- "8025:8025"
- "1025:1025"
networks:
- symfony
networks:
symfony:
name: symfony