mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-02-19 12:20:11 +00:00
Compare commits
10 Commits
2.9.0
...
origin/oct
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d5d303b64 | |||
| c7614aa3c3 | |||
| f687540c40 | |||
| 3423df950a | |||
|
|
0c99ff8b56 | ||
|
|
1265d2277a | ||
|
|
620ca96d64 | ||
|
|
2561055265 | ||
|
|
53ac2ff81b | ||
|
|
b6492b2e6b |
63
docker-compose.override.yml
Normal file
63
docker-compose.override.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
services:
|
||||
netbox:
|
||||
networks:
|
||||
- caddy
|
||||
- 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
|
||||
- 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
|
||||
networks:
|
||||
- netbox
|
||||
redis-cache:
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- netbox
|
||||
|
||||
secrets:
|
||||
netbox.superuser.pwd:
|
||||
external: true
|
||||
netbox.db.pwd:
|
||||
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
|
||||
@@ -1,8 +1,8 @@
|
||||
services:
|
||||
netbox: &netbox
|
||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.0}
|
||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
|
||||
depends_on:
|
||||
- postgres
|
||||
# - postgres
|
||||
- redis
|
||||
- redis-cache
|
||||
env_file: env/netbox.env
|
||||
@@ -11,17 +11,16 @@ services:
|
||||
start_period: 60s
|
||||
timeout: 3s
|
||||
interval: 15s
|
||||
test: "curl -f http://localhost:8080/api/ || exit 1"
|
||||
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 +33,7 @@ services:
|
||||
netbox-housekeeping:
|
||||
<<: *netbox
|
||||
depends_on:
|
||||
netbox:
|
||||
condition: service_healthy
|
||||
- netbox
|
||||
command:
|
||||
- /opt/netbox/housekeeping.sh
|
||||
healthcheck:
|
||||
@@ -45,11 +43,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 +72,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:
|
||||
|
||||
@@ -2,4 +2,4 @@ django-auth-ldap==4.8.0
|
||||
django-storages[azure,boto3,dropbox,google,libcloud,sftp]==1.14.3
|
||||
dulwich==0.22.1
|
||||
python3-saml==1.16.0 --no-binary lxml
|
||||
sentry-sdk==2.1.1
|
||||
sentry-sdk[django]==2.1.1
|
||||
|
||||
Reference in New Issue
Block a user