Working implementation of webhooks using new 'redis' container

This commit is contained in:
Brady Lamprecht 2018-08-10 17:55:09 -06:00
parent 6b5a4cf1db
commit b88974ef9f
6 changed files with 62 additions and 3 deletions

View file

@ -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