Add Caddy server configuration for domain markov.elpatron.me with Let's Encrypt SSL and WebSocket support. Includes: - Caddy service in docker-compose.yml - Caddyfile with SSL and WebSocket configuration - Enhanced Flask app for proxy compatibility - Documentation files (CADDY.md, updated README.md)

This commit is contained in:
2025-08-25 20:28:41 +00:00
parent 70bde3c015
commit b016d83c2f
5 changed files with 194 additions and 6 deletions

View File

@@ -1,10 +1,9 @@
version: '3.8'
services:
markov-economics:
build: .
ports:
- "5000:5000"
# Remove direct port mapping since Caddy will handle external access
# ports:
# - "5000:5000"
environment:
- FLASK_ENV=production
- FLASK_APP=run.py
@@ -22,10 +21,29 @@ services:
networks:
- markov-network
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- markov-economics
restart: unless-stopped
networks:
- markov-network
networks:
markov-network:
driver: bridge
volumes:
markov-data:
driver: local
caddy_data:
driver: local
caddy_config:
driver: local