24 lines
655 B
YAML
24 lines
655 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY:-please-change-this-secret-key}
|
|
- PORT=3000
|
|
- DEBUG=False
|
|
volumes:
|
|
# Mount comics data for easy updates without rebuilding
|
|
- ./comics_data.py:/app/comics_data.py:ro
|
|
- ./static/images:/app/static/images:ro
|
|
- ./static/feed.rss:/app/static/feed.rss:ro
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3000').read()"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|