network_inventory/docker-compose.yml

29 lines
468 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
2020-11-27 19:31:24 +01:00
backend:
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
2020-11-27 19:31:24 +01:00
frontend:
build: frontend/.
2020-11-27 23:27:04 +01:00
depends_on:
- backend
2020-11-27 19:31:24 +01:00
ports:
2020-11-27 23:27:04 +01:00
- 80:80