-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.89 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:
db:
container_name: egutegia_mysql
image: mysql:8.2.0
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3306:3306"
environment:
MYSQL_USER: ${DOCKER_MYSQL_USER}
MYSQL_PASSWORD: ${DOCKER_MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DOCKER_MYSQL_PASSWORD}
MYSQL_DATABASE: ${DOCKER_MYSQL_DATABASE}
volumes:
- v_egutegia_db:/var/lib/mysql
app:
container_name: egutegia_app
env_file: ./.env.local
extra_hosts:
- "host.docker.internal:host-gateway"
- "egutegia.test:172.29.164.206"
build:
context: .
dockerfile: docker/php/Dockerfile
args:
- DOCKER_TIMEZONE=${DOCKER_TIMEZONE}
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
- DEBUGMODE=${DEBUGMODE}
- FOSJSDUMP=${FOSJSDUMP}
user: "${USER_ID}:${GROUP_ID}"
depends_on:
- db
- redis
volumes:
- ".:/usr/src/app"
- "./docker/php/conf/my-php.ini:/usr/local/etc/php/php.ini:ro"
- "./docker/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro"
- "./docker/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:ro"
- "./docker/uploads/:/usr/src/app/web/uploads"
working_dir: /usr/src/app
nginx:
container_name: egutegia_nginx
build:
context: ./
dockerfile: docker/nginx/Dockerfile
depends_on:
- app
ports:
- "80:80"
- "443:443"
volumes:
- "./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
- "./docker/nginx/ssl/:/etc/nginx/ssl/"
volumes_from:
- app
working_dir: /usr/src/app
redis:
container_name: egutegia_redis
image: redis:alpine
ports:
- "6380:637"
volumes:
- v_egutegia_redis:/data
volumes:
v_egutegia_db:
v_egutegia_redis:
networks:
default:
ipam:
config:
- subnet: 172.212.0.0/16