-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 642 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 642 Bytes
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
networks:
mynet:
services:
web:
build: .
env_file:
- .env
ports:
- "80:80"
volumes:
- ./:/var/www/html:rw
command: ["/usr/local/bin/startup.sh"]
depends_on:
db:
condition: service_healthy
networks:
- mynet
restart: on-failure
db:
build:
context: .
dockerfile: Dockerfile-db
env_file:
- .env
volumes:
- db_data:/var/lib/mysql
networks:
- mynet
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh"]
timeout: 20s
retries: 10
interval: 10s
start_period: 40s
volumes:
db_data: {}