Set up the required directory layout, app scaffolding, core settings, templates, static assets, and Docker/Tailwind tooling to establish a standardized development baseline.
56 lines
917 B
YAML
56 lines
917 B
YAML
services:
|
|
web:
|
|
build: .
|
|
env_file: .env
|
|
command: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
networks:
|
|
- fonrey_net
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
env_file: .env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- fonrey_net
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
env_file: .env
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- fonrey_net
|
|
|
|
celery:
|
|
build: .
|
|
env_file: .env
|
|
command: celery -A config worker -l info
|
|
depends_on:
|
|
- redis
|
|
- db
|
|
networks:
|
|
- fonrey_net
|
|
|
|
celery-beat:
|
|
build: .
|
|
env_file: .env
|
|
command: celery -A config beat -l info
|
|
depends_on:
|
|
- redis
|
|
- db
|
|
networks:
|
|
- fonrey_net
|
|
|
|
networks:
|
|
fonrey_net:
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|