-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 913 Bytes
/
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
services:
app:
container_name: baseSymfony_app
build:
context: .
dockerfile: .docker/.dockerfile
env_file:
- ./app/.env
environment:
- TZ=America/Sao_Paulo
volumes:
- ./app:/var/www/app
networks:
- base-symfony-api
depends_on:
- db
db:
image: mysql:8.0
env_file:
- ./app/.env
ports:
- '4006:3306'
volumes:
- .docker/database/dump:/sql
- .docker/database/data:/var/lib/mysql
networks:
- base-symfony-api
nginx:
build:
context: .docker/nginx
volumes:
- ./app:/var/www/app:delegated
- .docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- .docker/nginx/sites:/etc/nginx/sites-available
- .docker/nginx/conf.d/:/etc/nginx/conf.d
ports:
- '8002:80'
networks:
- base-symfony-api
depends_on:
- app
networks:
base-symfony-api: