-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 849 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 849 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
services:
api:
build:
context: .
dockerfile: Dockerfile
environment:
OPENBLADE_BACKEND: mock
OPENBLADE_DB_URL: sqlite:////data/openblade.db
OPENBLADE_EMULATOR_URLS: ${OPENBLADE_EMULATOR_URLS:-http://host.docker.internal:8010,http://host.docker.internal:8011,http://host.docker.internal:8012}
volumes:
- openblade-data:/data
ports:
- "8000:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 10s
timeout: 5s
retries: 5
web:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:80"
depends_on:
api:
condition: service_healthy
volumes:
openblade-data: