Flask app with Clean Architecture (core/infra), RSS feed parsing, avatar resolution from social.org files, Docker + Nginx setup.
23 lines
565 B
YAML
23 lines
565 B
YAML
services:
|
|
web:
|
|
build: .
|
|
restart: unless-stopped
|
|
expose:
|
|
- "8080"
|
|
environment:
|
|
- FLASK_ENV=${FLASK_ENV:-production}
|
|
- FLASK_DEBUG=${FLASK_DEBUG:-False}
|
|
- RSS_URL=${RSS_URL:-http://relay.org-social.org/rss.xml}
|
|
- CACHE_TIMEOUT=${CACHE_TIMEOUT:-300}
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${EXTERNAL_PORT:-8080}:80"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./src/infra/http/static:/usr/share/nginx/static:ro
|
|
depends_on:
|
|
- web
|