netbox-acls/docker-compose.yml
Abhimanyu Saharan e43b5e41f1
Added testing framework (#121)
* added api test case for access list

* initial testing framework
2023-01-25 20:01:05 -05:00

30 lines
630 B
YAML

version: '3.4'
services:
netbox:
build:
dockerfile: Dockerfile
context: .
args:
NETBOX_VARIANT: ${NETBOX_VARIANT}
depends_on:
- postgres
- redis
env_file: env/netbox.env
volumes:
- ./configuration:/etc/netbox/config:z,ro
# postgres
postgres:
image: postgres:14-alpine
env_file: env/postgres.env
# redis
redis:
image: redis:6-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
- redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
env_file: env/redis.env