-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 857 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
40 lines (37 loc) · 857 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
35
36
37
38
39
40
version: '3.8'
services:
api:
build: .
container_name: boce-api-v5
command: python -m app.cli api
ports:
- "3000:3000"
volumes:
- ./boce_api.db:/app/boce_api.db
- ./.env:/app/.env
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
environment:
- PORT=3000
- PYTHONUNBUFFERED=1
- BOCE_FORCE_MOCK=true
scheduler:
build: .
container_name: boce-scheduler-v5
command: python -m app.cli scheduler
volumes:
- ./boce_api.db:/app/boce_api.db
- ./.env:/app/.env
restart: unless-stopped
depends_on:
- api
environment:
- PYTHONUNBUFFERED=1
- BOCE_FORCE_MOCK=true
networks:
default:
name: boce-enterprise-network