-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 1.07 KB
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
services:
python-backend:
build:
context: .
dockerfile: python-backend/Dockerfile
container_name: walkthrough-python
ports:
- "8000:8000"
environment:
- TESTOPS_HOST=https://evals.browserstack.com
- PYTHONUNBUFFERED=1
volumes:
- ./shared-frontend:/app/shared-frontend:ro
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/healthz')\""]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
node-backend:
build:
context: .
dockerfile: node-backend/Dockerfile
container_name: walkthrough-node
ports:
- "3001:3001"
environment:
- TESTOPS_HOST=https://evals.browserstack.com
- NODE_ENV=production
volumes:
- ./shared-frontend:/app/shared-frontend:ro
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3001/healthz || exit 1"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s