initial commit
This commit is contained in:
57
docker-compose.prod.yml
Normal file
57
docker-compose.prod.yml
Normal file
@ -0,0 +1,57 @@
|
||||
services:
|
||||
web:
|
||||
image: git.logidex.ru/fakz9/tbank-api-logidex:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: gunicorn app.main:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000
|
||||
env_file:
|
||||
- ./src/.env
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
volumes:
|
||||
- ./src/app:/code/app
|
||||
- ./src/.env:/code/.env
|
||||
networks:
|
||||
- appnet
|
||||
- proxy
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
worker:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: arq app.core.worker.settings.WorkerSettings
|
||||
env_file:
|
||||
- ./src/.env
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
volumes:
|
||||
- ./src/app:/code/app
|
||||
- ./src/.env:/code/.env
|
||||
networks:
|
||||
- appnet
|
||||
db:
|
||||
image: postgres:17
|
||||
env_file:
|
||||
- ./src/.env
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- appnet
|
||||
redis:
|
||||
image: redis:alpine
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
networks:
|
||||
- appnet
|
||||
volumes:
|
||||
postgres-data:
|
||||
redis-data:
|
||||
networks:
|
||||
appnet:
|
||||
external: false
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user