Files
digiserver-v2/docker-compose.http.yml
Quality App Developer ef17abfe6b Fix HTTPS configuration: use service hostname for networking and add HTTP-only compose file
- Updated service name from 'digiserver' to 'digiserver-app' in docker-compose.yml for proper Docker network DNS resolution
- Fixed Caddyfile to reference correct service hostname 'digiserver-app:5000'
- Changed port mapping from 'ports' to 'expose' for internal-only access
- Added docker-compose.http.yml for HTTP-only deployment on port 80 (development/testing)
- Both Flask app and Caddy now communicate correctly over internal Docker network
- App now accessible at https://localhost or https://your-domain.com on port 443
2026-01-13 15:20:25 +02:00

28 lines
909 B
YAML

version: '3.8'
services:
digiserver:
build: .
container_name: digiserver-v2-http
ports:
- "80:5000" # Direct HTTP exposure on port 80
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
# Usage: docker-compose -f docker-compose.http.yml up -d
# Access at: http://localhost or http://your-server-ip
# Note: This is for development/testing only. Use docker-compose.yml for production HTTPS.