Files
calorie_tracker/docker-compose.yml
Jp f1b94d9ac7
Some checks failed
Build and Push Docker Image (Gitea) / build-and-push (push) Has been cancelled
chore(docker): remove container_name and network, add healthcheck
- Remove explicit container_name to allow Docker Compose to generate unique names
- Remove custom network configuration as default network is sufficient
- Add curl installation and healthcheck to Dockerfile for better container monitoring
2026-01-30 22:48:50 +08:00

17 lines
434 B
YAML

version: '3.8'
services:
calorie-tracker:
build: ./calorie_tracker_app
image: git.jpaleviado.site/kingjaypee12/calorie-tracker:latest
restart: unless-stopped
ports:
- "5001:5000"
volumes:
- ./data:/app/data
environment:
- DATABASE_URL=sqlite:////app/data/calorie_tracker.db
- SECRET_KEY=change-this-secret-key-in-production
- API_NINJAS_KEY=${API_NINJAS_KEY}
- PORT=5000