From 6d5d303b64aab0b4845f7d7d4a5159477bea924f Mon Sep 17 00:00:00 2001 From: hoostine Date: Sun, 16 Jun 2024 19:11:01 +0000 Subject: [PATCH] testing out the stack deploy via portainer with updates --- docker-compose.override.yml | 18 ++++++++++++++++++ docker-compose.yml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 9665e08..063b436 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -5,6 +5,11 @@ services: - netbox ports: - 8000:8080 + 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 @@ -12,6 +17,10 @@ services: 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 @@ -37,9 +46,18 @@ secrets: external: true netbox.secretkey: external: true + netbox.redis.pwd: + external: true 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 diff --git a/docker-compose.yml b/docker-compose.yml index 22531a5..acc9906 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: interval: 15s test: "curl -f http://localhost:8080/login/ || exit 1" volumes: - - ./configuration:/etc/netbox/config:z,ro +# - ./configuration:/etc/netbox/config:z,ro - netbox-media-files:/opt/netbox/netbox/media:rw - netbox-reports-files:/opt/netbox/netbox/reports:rw - netbox-scripts-files:/opt/netbox/netbox/scripts:rw