-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
59 lines (54 loc) · 1.15 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
services:
db:
image: mysql:8.4
container_name: navi_db
volumes:
- navi_data:/var/lib/mysql
- ./database:/root/database
restart: always
environment:
MYSQL_ROOT_PASSWORD: root_pwd
maquette:
container_name: navi_maquette
build:
context: build_docker
dockerfile: Dockerfile-web
volumes:
- ./maquette:/var/www/html
ports:
- "8022:80"
deploy:
restart_policy:
condition: none
web:
depends_on:
- db
container_name: navi_web
build:
context: build_docker
dockerfile: Dockerfile-web
volumes:
- ./public:/var/www/html
- ./src:/var/www/html/src
- ./build_docker/app_config:/var/www/html/app_config
ports:
- "8021:80"
deploy:
restart_policy:
condition: none
cli:
depends_on:
- db
container_name: navi_cli
build:
context: build_docker
dockerfile: Dockerfile-cli
volumes:
- ./script:/script
- ./src:/script/src
- ./build_docker/app_config:/script/app_config
deploy:
restart_policy:
condition: none
volumes:
navi_data: