version: '3.8' services: backend: build: ./backend ports: - "5000:5000" environment: - NODE_ENV=production - JWT_SECRET=${JWT_SECRET:?set JWT_SECRET} volumes: - sqlite_data:/app/data restart: unless-stopped healthcheck: test: ["CMD-SHELL", "wget -qO- http://localhost:5000/api/health || exit 1"] interval: 10s timeout: 5s retries: 5 frontend: build: ./frontend expose: - "80" depends_on: - backend restart: unless-stopped healthcheck: test: ["CMD-SHELL", "wget -qO- http://localhost:80 || exit 1"] interval: 10s timeout: 5s retries: 5 volumes: sqlite_data: