-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (72 loc) · 1.35 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
78
version: '3.0'
services:
app_js:
build: ./app_server
container_name: app_js
ports:
- "80:80"
volumes:
- ./app_server:/app_app
env_file:
- db_log.env
- mail.env
- pma.env
- api_token.env
depends_on:
db:
condition: service_healthy
networks:
- result-tier
api_js:
build: ./api_server
container_name: api_js
volumes:
- ./api_server:/app_api
ports:
- "8080:8080"
env_file:
- db_log.env
- mail.env
- pma.env
- api_token.env
depends_on:
db:
condition: service_healthy
networks:
- result-tier
db:
image: mysql:latest
restart: always
container_name: database
env_file:
- db_log.env
ports:
- "3306"
volumes:
- ./data_table.sql:/docker-entrypoint-initdb.d/setup.sql
- db-data:/var/lib/mysql
networks:
- result-tier
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 2s
timeout: 1s
retries: 30
phpmyadmin:
image: phpmyadmin
container_name: PHPmyAdmin
networks:
- result-tier
env_file:
- pma.env
restart: always
ports:
- 8081:80
depends_on:
db:
condition: service_healthy
networks:
result-tier:
volumes:
db-data:
driver: local