mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 13:49:40 +00:00
19 lines
491 B
YAML
19 lines
491 B
YAML
version: '3'
|
|
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./nginx:/etc/nginx/conf.d
|
|
- .:/usr/src/app
|
|
depends_on:
|
|
- web
|
|
web:
|
|
build: .
|
|
container_name: django
|
|
command: bash -c "pip install -r requirements.txt && python manage.py collectstatic --noinput && python manage.py migrate && gunicorn zod_bank.wsgi -b 0.0.0.0:8000 -t 300 --log-level=info"
|
|
volumes:
|
|
- .:/usr/src/app
|