changes docker file position

This commit is contained in:
jain
2023-06-27 16:53:38 +05:30
parent 2086dcb472
commit 8ff142ce2f
4 changed files with 0 additions and 1 deletions

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
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