29 lines
610 B
YAML
29 lines
610 B
YAML
services:
|
|
parking:
|
|
build: .
|
|
container_name: parking
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./data:/app/data
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- PORT=8000
|
|
- DATABASE_PATH=/app/data/parking.db
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- org-network
|
|
|
|
networks:
|
|
org-network:
|
|
external: true
|
|
name: org-stack_org-network
|