Working implementation of webhooks using new 'redis' container
This commit is contained in:
parent
6b5a4cf1db
commit
b88974ef9f
6 changed files with 62 additions and 3 deletions
|
@ -8,6 +8,7 @@ services:
|
|||
image: ninech/netbox:${VERSION-latest}
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
env_file: netbox.env
|
||||
volumes:
|
||||
- ./startup_scripts:/opt/netbox/startup_scripts:ro
|
||||
|
@ -32,6 +33,21 @@ services:
|
|||
env_file: postgres.env
|
||||
volumes:
|
||||
- netbox-postgres-data:/var/lib/postgresql/data
|
||||
redis:
|
||||
image: redis:4-alpine
|
||||
environment:
|
||||
REDIS_PASS_FILE: /run/secrets/redis-pass
|
||||
command: [
|
||||
"sh", "-c",
|
||||
'
|
||||
docker-entrypoint.sh
|
||||
--appendonly yes
|
||||
--requirepass "$$(cat $$REDIS_PASS_FILE)"
|
||||
'
|
||||
]
|
||||
volumes:
|
||||
- ./redis-pass:/run/secrets/redis-pass
|
||||
- netbox-redis-data:/data
|
||||
|
||||
volumes:
|
||||
netbox-static-files:
|
||||
|
@ -44,3 +60,5 @@ volumes:
|
|||
driver: local
|
||||
netbox-postgres-data:
|
||||
driver: local
|
||||
netbox-redis-data:
|
||||
driver: local
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue