network_inventory/docker-compose.yml

32 lines
602 B
YAML
Raw Normal View History

2019-06-10 20:59:46 +02:00
version: '3'
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:
2022-12-12 09:50:51 +01:00
image: ghcr.io/nebucatnetzer/network_inventory/network-inventory
2019-06-10 20:59:46 +02:00
volumes:
2022-12-12 09:51:13 +01:00
- ./static/:/code/static
environment:
2020-05-26 23:23:50 +02:00
- DJANGO_SETTINGS_MODULE
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
- "DJANGO_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
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