network_inventory/docker-compose.yml

34 lines
524 B
YAML
Raw Normal View History

2019-06-10 20:59:46 +02:00
version: '3'
volumes:
db_data:
2019-06-10 20:59:46 +02:00
services:
db:
image: postgres
environment:
2020-05-26 23:23:50 +02:00
- POSTGRES_DB
- POSTGRES_PASSWORD
2019-06-10 20:59:46 +02:00
volumes:
- db_data:/var/lib/postgresql/data/
2019-06-10 20:59:46 +02:00
web:
image: nebucatnetzer/network_inventory
2019-06-10 20:59:46 +02:00
volumes:
- .:/code
environment:
2020-05-26 23:23:50 +02:00
- DJANGO_SETTINGS_MODULE
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
2019-06-10 20:59:46 +02:00
depends_on:
- db
nginx:
build: ./nginx
ports:
- 80:80
depends_on:
- web
volumes:
2020-05-03 19:28:26 +02:00
- ./static:/home/app/web/static