add docker
This commit is contained in:
parent
c11ab4d04a
commit
91d613729f
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@ -27,6 +27,7 @@ share/python-wheels/
|
|||||||
*.egg
|
*.egg
|
||||||
MANIFEST
|
MANIFEST
|
||||||
env/
|
env/
|
||||||
|
media/
|
||||||
static/
|
static/
|
||||||
|
|
||||||
# PyInstaller
|
# PyInstaller
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
version: '3.7'
|
|
||||||
services:
|
|
||||||
web:
|
|
||||||
build: .
|
|
||||||
command: gunicorn URL_shortener.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