Compare commits

...

14 Commits

Author SHA1 Message Date
beee2fdd3c ... 2024-06-16 20:58:57 +00:00
40076019df ... 2024-06-16 20:55:33 +00:00
bcc42c13be ... 2024-06-16 20:54:15 +00:00
35feeb8960 ... 2024-06-16 20:51:18 +00:00
05ef5509bf ... 2024-06-16 20:49:45 +00:00
147668f3a4 ... 2024-06-16 20:44:05 +00:00
9e42c92a3f ... 2024-06-16 20:37:19 +00:00
e605255e52 ... 2024-06-16 20:34:01 +00:00
7d94c03ae8 ... 2024-06-16 20:31:42 +00:00
9e89ba277c portainer is awful 2024-06-16 20:00:53 +00:00
47a99902d0 nothing works with portainer... 2024-06-16 19:41:08 +00:00
171dd280c4 change type of environment in yaml 2024-06-16 19:37:14 +00:00
68518e8d5e not pulling env from portainer, add to override 2024-06-16 19:30:34 +00:00
06d4e37644 remove postgres from env file 2024-06-16 19:19:54 +00:00
4 changed files with 14 additions and 7 deletions

View File

@@ -5,6 +5,8 @@ services:
- netbox
ports:
- 8000:8080
environment:
- "DB_HOST=${PG_HOST}"
configs:
- source: configuration.py
target: /etc/netbox/config/configuration.py
@@ -32,10 +34,14 @@ services:
- netbox
redis:
restart: unless-stopped
secrets:
- redis-password
networks:
- netbox
redis-cache:
restart: unless-stopped
secrets:
- redis-password
networks:
- netbox
@@ -48,6 +54,10 @@ secrets:
external: true
netbox.redis.pwd:
external: true
redis-password:
name: netbox.redis.pwd
external: true
environment: "REDIS_PASSWORD"
networks:
caddy:

View File

@@ -5,7 +5,8 @@ services:
# - postgres
- redis
- redis-cache
env_file: env/netbox.env
env_file:
- env/netbox.env
user: 'unit:root'
healthcheck:
start_period: 60s

7
env/netbox.env vendored
View File

@@ -1,10 +1,8 @@
CORS_ORIGIN_ALLOW_ALL=True
DB_HOST=postgres
DB_HOST=${DB_HOST}
DB_NAME=netbox
DB_PASSWORD=J5brHrAXFLQSif0K
DB_USER=netbox
EMAIL_FROM=netbox@bar.com
EMAIL_PASSWORD=
EMAIL_PORT=25
EMAIL_SERVER=localhost
EMAIL_SSL_CERTFILE=
@@ -21,14 +19,11 @@ METRICS_ENABLED=false
REDIS_CACHE_DATABASE=1
REDIS_CACHE_HOST=redis-cache
REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY=false
REDIS_CACHE_PASSWORD=t4Ph722qJ5QHeQ1qfu36
REDIS_CACHE_SSL=false
REDIS_DATABASE=0
REDIS_HOST=redis
REDIS_INSECURE_SKIP_TLS_VERIFY=false
REDIS_PASSWORD=H733Kdjndks81
REDIS_SSL=false
RELEASE_CHECK_URL=https://api.github.com/repos/netbox-community/netbox/releases
SECRET_KEY='r(m)9nLGnz$(_q3N4z1k(EFsMCjjjzx08x9VhNVcfd%6RF#r!6DE@+V5Zk2X'
SKIP_SUPERUSER=true
WEBHOOKS_ENABLED=true

1
stack.env Normal file
View File

@@ -0,0 +1 @@
DB_HOST=$$PG_HOST