calink/docker-compose.yml
2026-02-20 15:50:32 +02:00

41 lines
850 B
YAML

version: '3.8'
services:
calink-backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: calink-backend
environment:
- DATABASE_PATH=/data/app.db
volumes:
- calink-data:/data
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
calink-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: calink-frontend
ports:
- "80:80"
depends_on:
- calink-backend
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
volumes:
calink-data:
driver: local