Files
digiserver-v2/docker-compose.yml
2025-11-17 22:03:52 +02:00

35 lines
899 B
YAML

#version: '3.8'
services:
digiserver:
build: .
container_name: digiserver-v2
ports:
- "80:5000"
volumes:
- ./instance:/app/instance
- ./app/static/uploads:/app/app/static/uploads
environment:
- FLASK_ENV=production
- SECRET_KEY=${SECRET_KEY:-your-secret-key-change-this}
- ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/').read()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Redis for caching (uncomment if needed)
# redis:
# image: redis:7-alpine
# container_name: digiserver-redis
# restart: unless-stopped
# volumes:
# - redis-data:/data
# volumes:
# redis-data: