73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
services:
|
|
web:
|
|
build:
|
|
context: ./dbapp
|
|
dockerfile: Dockerfile
|
|
env_file:
|
|
- .env.prod
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- static_volume:/app/staticfiles
|
|
- ./logs:/app/logs
|
|
expose:
|
|
- 8000
|
|
|
|
worker:
|
|
build:
|
|
context: ./dbapp
|
|
dockerfile: Dockerfile
|
|
env_file:
|
|
- .env.prod
|
|
#entrypoint: []
|
|
command: ["uv", "run", "celery", "-A", "dbapp", "worker", "--loglevel=INFO"]
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
- web
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
restart: unless-stopped
|
|
ports:
|
|
- 6379:6379
|
|
|
|
db:
|
|
image: postgis/postgis:18-3.6
|
|
container_name: postgres-postgis
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.prod
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql
|
|
# networks:
|
|
# - app-network
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
depends_on:
|
|
- web
|
|
ports:
|
|
- 8080:80
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- static_volume:/usr/share/nginx/html/static
|
|
|
|
flaresolverr:
|
|
image: ghcr.io/flaresolverr/flaresolverr:latest
|
|
container_name: flaresolverr
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8191:8191"
|
|
environment:
|
|
- LOG_LEVEL=info
|
|
- LOG_HTML=false
|
|
- CAPTCHA_SOLVER=none
|
|
|
|
volumes:
|
|
pgdata:
|
|
static_volume: |