fix docker-compose

This commit is contained in:
TUTOR03 2020-11-29 06:45:29 +05:00
parent 91d613729f
commit 54e1e06925
2 changed files with 23 additions and 1 deletions

3
.gitignore vendored
View File

@ -33,4 +33,5 @@ yarn-error.log*
# vercel
.vercel
.vscode/
.vscode/
.env

21
docker-compose.yml Normal file
View File

@ -0,0 +1,21 @@
version: '3.7'
services:
web:
build: ./backend
command: gunicorn Ugra_hackaton.wsgi:application --bind 0.0.0.0:8005
volumes:
- .:/usr/src/app/
ports:
- 8005:8005
env_file:
- ./.env
depends_on:
- db
db:
image: postgres:alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
volumes:
postgres_data: