30 lines
696 B
YAML
30 lines
696 B
YAML
services:
|
|
api:
|
|
image: harbor.cloud.traunseenet.com/library/fin-api:latest
|
|
build: ./api
|
|
volumes:
|
|
- sqlite_data:/data
|
|
environment:
|
|
- DATABASE_URL=sqlite:////data/fin.db
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
web:
|
|
image: harbor.cloud.traunseenet.com/library/fin-web:latest
|
|
build: ./web
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- API_UPSTREAM=api:8000
|
|
depends_on:
|
|
api:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
sqlite_data:
|