-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
executable file
·66 lines (62 loc) · 1.65 KB
/
docker-compose.yaml
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
version: '3.7'
services:
mariadb:
image: mariadb:10.5.3
env_file: ./.env.local
container_name: zergaordenantzak-db
volumes:
- db_zzoo:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "3306:3306"
networks:
- zzoo
app:
container_name: zergaordenantzak-php
env_file: ./.env.local
build:
context: .
dockerfile: docker/php/Dockerfile
args:
- DOCKER_TIMEZONE=${DOCKER_TIMEZONE}
- USER_ID=${USER_ID}
- GROUP_ID=${GROUP_ID}
restart: always
depends_on:
- mariadb
volumes:
- '.:/usr/src/app'
environment:
- APP_ENV=dev
- PHP_IDE_CONFIG=serverName=zergaordenantzak.test
- XDEBUG_CONFIG=remote_host='host.docker.internal'
networks:
- zzoo
nginx:
container_name: zergaordenantzak-nginx
env_file: ./.env.local
image: nginx:1.15.3-alpine
restart: always
volumes:
- '.:/usr/src/app'
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
- './docker/nginx/ssl/:/etc/nginx/ssl/'
depends_on:
- app
ports:
- 80:80
- 443:443
networks:
- zzoo
volumes:
db_zzoo:
#networks:
# zzoo:
# driver: bridge
networks:
zzoo:
external: true