Files
netbox-acls/docker-compose.yml
2024-09-19 20:34:27 +01:00

28 lines
571 B
YAML

---
services:
netbox:
build:
dockerfile: Dockerfile
context: .
depends_on:
- postgres
- redis
env_file: env/netbox.env
volumes:
- ./configuration:/etc/netbox/config:z,ro
# postgres
postgres:
image: postgres:16-alpine
env_file: env/postgres.env
# redis
redis:
image: redis:7-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
env_file: env/redis.env