add a compose file specific for development
This commit is contained in:
parent
9f948fe396
commit
73d7345aff
|
@ -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
|
|
@ -13,7 +13,7 @@ services:
|
||||||
- db_data:/var/lib/postgresql/data/
|
- db_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build: .
|
image: nebucatnetzer/network_inventory
|
||||||
command: ./run.sh
|
command: ./run.sh
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
|
|
Loading…
Reference in New Issue