forked from mirror/netbox-docker
Compare commits
18 Commits
release
...
octopus-re
| Author | SHA1 | Date | |
|---|---|---|---|
| beee2fdd3c | |||
| 40076019df | |||
| bcc42c13be | |||
| 35feeb8960 | |||
| 05ef5509bf | |||
| 147668f3a4 | |||
| 9e42c92a3f | |||
| e605255e52 | |||
| 7d94c03ae8 | |||
| 9e89ba277c | |||
| 47a99902d0 | |||
| 171dd280c4 | |||
| 68518e8d5e | |||
| 06d4e37644 | |||
| 6d5d303b64 | |||
| c7614aa3c3 | |||
| f687540c40 | |||
| 3423df950a |
73
docker-compose.override.yml
Normal file
73
docker-compose.override.yml
Normal file
@ -0,0 +1,73 @@
|
||||
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
|
||||
@ -2,10 +2,11 @@ services:
|
||||
netbox: &netbox
|
||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
|
||||
depends_on:
|
||||
- postgres
|
||||
# - postgres
|
||||
- redis
|
||||
- redis-cache
|
||||
env_file: env/netbox.env
|
||||
env_file:
|
||||
- env/netbox.env
|
||||
user: 'unit:root'
|
||||
healthcheck:
|
||||
start_period: 60s
|
||||
@ -13,15 +14,14 @@ 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
|
||||
netbox-worker:
|
||||
<<: *netbox
|
||||
depends_on:
|
||||
netbox:
|
||||
condition: service_healthy
|
||||
- netbox
|
||||
command:
|
||||
- /opt/netbox/venv/bin/python
|
||||
- /opt/netbox/netbox/manage.py
|
||||
@ -34,8 +34,7 @@ services:
|
||||
netbox-housekeeping:
|
||||
<<: *netbox
|
||||
depends_on:
|
||||
netbox:
|
||||
condition: service_healthy
|
||||
- netbox
|
||||
command:
|
||||
- /opt/netbox/housekeeping.sh
|
||||
healthcheck:
|
||||
@ -45,11 +44,11 @@ services:
|
||||
test: "ps -aux | grep -v grep | grep -q housekeeping || exit 1"
|
||||
|
||||
# postgres
|
||||
postgres:
|
||||
image: docker.io/postgres:16-alpine
|
||||
env_file: env/postgres.env
|
||||
volumes:
|
||||
- netbox-postgres-data:/var/lib/postgresql/data
|
||||
# postgres:
|
||||
# image: docker.io/postgres:16-alpine
|
||||
# env_file: env/postgres.env
|
||||
# volumes:
|
||||
# - netbox-postgres-data:/var/lib/postgresql/data
|
||||
|
||||
# redis
|
||||
redis:
|
||||
@ -74,8 +73,8 @@ services:
|
||||
volumes:
|
||||
netbox-media-files:
|
||||
driver: local
|
||||
netbox-postgres-data:
|
||||
driver: local
|
||||
# netbox-postgres-data:
|
||||
# driver: local
|
||||
netbox-redis-cache-data:
|
||||
driver: local
|
||||
netbox-redis-data:
|
||||
|
||||
7
env/netbox.env
vendored
7
env/netbox.env
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user