add a compose file specific for development

This commit is contained in:
Andreas Zweili 2020-07-04 10:55:30 +02:00
parent 9f948fe396
commit 73d7345aff
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,36 @@
version: '3'
volumes:
db_data:
services:
db:
image: postgres
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
volumes:
- db_data:/var/lib/postgresql/data/
web:
build: .
command: ./development.sh
volumes:
- .:/code
ports:
- 8000:8000
environment:
- DJANGO_SETTINGS_MODULE
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
depends_on:
- db
nginx:
build: ./nginx
ports:
- 80:80
depends_on:
- web
volumes:
- ./static:/home/app/web/static

View File

@ -13,7 +13,7 @@ services:
- db_data:/var/lib/postgresql/data/
web:
build: .
image: nebucatnetzer/network_inventory
command: ./run.sh
volumes:
- .:/code