seller_central_backend/docker-compose.yml
vickytechkey 22800ab230
All checks were successful
Build and Deploy Beta / build-and-push (push) Successful in 1m21s
Build and Deploy Beta / deploy (push) Successful in 11s
adding the logs service
2026-08-09 17:24:57 +05:30

22 lines
527 B
YAML

version: '3.8'
services:
web:
build: .
ports:
- "8080:8000"
volumes:
- .:/app
- ./logs:/app/logs # persists log files on the host
environment:
- DEBUG=1
restart: always
# Forward Gunicorn access + error logs to /app/logs
command: >
gunicorn config.wsgi:application
--bind 0.0.0.0:8000
--workers 2
--access-logfile /app/logs/gunicorn-access.log
--error-logfile /app/logs/gunicorn-error.log
--log-level info
--capture-output