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:
@@ -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
|
Reference in New Issue
Block a user