fix docker-compose
This commit is contained in:
parent
91d613729f
commit
54e1e06925
3
.gitignore
vendored
3
.gitignore
vendored
@ -33,4 +33,5 @@ yarn-error.log*
|
|||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.env
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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:
|
Loading…
x
Reference in New Issue
Block a user