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
|
netbox: &netbox
|
||||||
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
|
image: docker.io/netboxcommunity/netbox:${VERSION-v4.0-2.9.1}
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
# - postgres
|
||||||
- redis
|
- redis
|
||||||
- redis-cache
|
- redis-cache
|
||||||
env_file: env/netbox.env
|
env_file: env/netbox.env
|
||||||
@ -45,11 +45,11 @@ services:
|
|||||||
test: "ps -aux | grep -v grep | grep -q housekeeping || exit 1"
|
test: "ps -aux | grep -v grep | grep -q housekeeping || exit 1"
|
||||||
|
|
||||||
# postgres
|
# postgres
|
||||||
postgres:
|
# postgres:
|
||||||
image: docker.io/postgres:16-alpine
|
# image: docker.io/postgres:16-alpine
|
||||||
env_file: env/postgres.env
|
# env_file: env/postgres.env
|
||||||
volumes:
|
# volumes:
|
||||||
- netbox-postgres-data:/var/lib/postgresql/data
|
# - netbox-postgres-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
# redis
|
# redis
|
||||||
redis:
|
redis:
|
||||||
@ -74,8 +74,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
netbox-media-files:
|
netbox-media-files:
|
||||||
driver: local
|
driver: local
|
||||||
netbox-postgres-data:
|
# netbox-postgres-data:
|
||||||
driver: local
|
# driver: local
|
||||||
netbox-redis-cache-data:
|
netbox-redis-cache-data:
|
||||||
driver: local
|
driver: local
|
||||||
netbox-redis-data:
|
netbox-redis-data:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user