-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_compose.yaml
More file actions
53 lines (49 loc) · 1.01 KB
/
Copy pathdocker_compose.yaml
File metadata and controls
53 lines (49 loc) · 1.01 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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.9"
services:
python-solver:
build:
context: ./python-solver
dockerfile: Dockerfile
ports:
- "8000:8000"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/solve/health')"]
interval: 20s
timeout: 5s
retries: 5
networks:
- or-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
environment:
- PYTHON_SOLVER_URL=http://python-solver:8000
- PORT=3000
ports:
- "3000:3000"
depends_on:
python-solver:
condition: service_healthy
restart: unless-stopped
networks:
- or-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_URL: /api
ports:
- "5173:80"
depends_on:
- backend
restart: unless-stopped
networks:
- or-network
networks:
or-network:
driver: bridge