forked from mirror/netbox-docker
first try
This commit is contained in:
parent
0c99ff8b56
commit
3423df950a
45
docker-compose.override.yml
Normal file
45
docker-compose.override.yml
Normal file
@ -0,0 +1,45 @@
|
||||
services:
|
||||
netbox:
|
||||
networks:
|
||||
- caddy
|
||||
- netbox
|
||||
ports:
|
||||
- 8000:8080
|
||||
secrets:
|
||||
- source: netbox.superuser.pwd
|
||||
target: superuser_password
|
||||
- source: netbox.db.pwd
|
||||
target: db_password
|
||||
- source: netbox.secretkey
|
||||
target: secret_key
|
||||
|
||||
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
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
netbox:
|
||||
|
||||
@ -2,7 +2,7 @@ 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
|
||||
@ -45,11 +45,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 +74,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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user