-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 950 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 950 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
services:
python-server:
build:
context: .
dockerfile: servers/python/Dockerfile
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health').read()"]
interval: 2s
timeout: 5s
retries: 15
start_period: 5s
ts-server:
build:
context: servers/ts
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:8080/health',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"]
interval: 3s
timeout: 5s
retries: 20
start_period: 10s
go-tests:
build:
context: .
dockerfile: servers/go/Dockerfile
depends_on:
python-server:
condition: service_healthy
ts-server:
condition: service_healthy
environment:
- HI_REMOTE_URL_PYTHON=http://python-server:8080
- HI_REMOTE_URL_TS=http://ts-server:8080