network_inventory/docker-compose.yml

32 lines
520 B
YAML

version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_DB
- POSTGRES_PASSWORD
volumes:
- ./db_data:/var/lib/postgresql/data/
web:
image: nebucatnetzer/network_inventory
# build: .
volumes:
- .:/code
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