-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.demo.yml
More file actions
51 lines (47 loc) · 1.02 KB
/
Copy pathcompose.demo.yml
File metadata and controls
51 lines (47 loc) · 1.02 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
name: business-intake-triage-demo
services:
backend:
image: business-intake-triage-backend:demo
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
ENVIRONMENT: production
DATABASE_URL: ${DATABASE_URL:-sqlite:///./data/business_intake.db}
volumes:
- demo_data:/app/data
healthcheck:
test:
- CMD
- python
- -c
- >-
import urllib.request;
urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=3).read()
interval: 10s
timeout: 3s
start_period: 10s
retries: 5
restart: unless-stopped
networks:
- app
frontend:
image: business-intake-triage-frontend:demo
build:
context: .
dockerfile: frontend/Dockerfile
depends_on:
backend:
condition: service_healthy
ports:
- "127.0.0.1:${DEMO_PORT:-8085}:8080"
restart: unless-stopped
networks:
- app
networks:
app:
driver: bridge
volumes:
demo_data: