netbox-docker/docker-compose.override.yml
2024-06-16 20:58:57 +00:00

74 lines
1.5 KiB
YAML

services:
netbox:
networks:
- caddy
- netbox
ports:
- 8000:8080
environment:
- "DB_HOST=${PG_HOST}"
configs:
- source: configuration.py
target: /etc/netbox/config/configuration.py
- source: ldap_config.py
target: /etc/netbox/config/ldap/ldap_config.py
secrets:
- source: netbox.superuser.pwd
target: superuser_password
- source: netbox.db.pwd
target: db_password
- source: netbox.secretkey
target: secret_key
- source: netbox.redis.pwd
target: redis_password
- source: netbox.redis.pwd
target: redis_cache_password
netbox-worker:
restart: unless-stopped
networks:
- netbox
netbox-housekeeping:
restart: unless-stopped
networks:
- netbox
redis:
restart: unless-stopped
secrets:
- redis-password
networks:
- netbox
redis-cache:
restart: unless-stopped
secrets:
- redis-password
networks:
- netbox
secrets:
netbox.superuser.pwd:
external: true
netbox.db.pwd:
external: true
netbox.secretkey:
external: true
netbox.redis.pwd:
external: true
redis-password:
name: netbox.redis.pwd
external: true
environment: "REDIS_PASSWORD"
networks:
caddy:
external: true
netbox:
configs:
configuration.py:
external: true
name: netbox-configuration.py-v0
ldap_config.py:
external: true
name: netbox-ldap_config.py-v0