-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·41 lines (41 loc) · 989 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
version: '3.4'
services:
db:
image: dolthub/dolt-sql-server
ports:
- 3306:3306
- 3306
healthcheck:
test: exit 0
volumes:
- ./db/sql:/docker-entrypoint-initdb.d
py-srv:
build:
context: py-srv
ports:
- 80:5000
healthcheck:
test: exit 0
command: sh -c "/wait && python app.py"
environment:
- WAIT_HOSTS=db:3306
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- db
links:
- db:db
py-test-srv:
build:
context: py-test-srv
command: sh -c "/wait && python app.py"
environment:
- WAIT_HOSTS=db:3306,py-srv:5000
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30
depends_on:
- py-srv
links:
- py-srv:py-srv