version: "3.8" services: postgres: image: docker.io/library/postgres:16-alpine container_name: nb-services-postgres environment: POSTGRES_DB: netbox POSTGRES_USER: netbox POSTGRES_PASSWORD: netbox volumes: - nb-services-pgdata:/var/lib/postgresql/data networks: - nb-services redis: image: docker.io/library/redis:7-alpine container_name: nb-services-redis networks: - nb-services netbox: build: context: .. dockerfile: dev/Dockerfile container_name: nb-services-netbox depends_on: - postgres - redis volumes: - ..:/opt/netbox-plugin-services - ./configuration.py:/etc/netbox/config/configuration.py:Z - ./entrypoint.sh:/opt/netbox-plugin-services/dev/entrypoint.sh:Z ports: - "8001:8000" entrypoint: ["/bin/bash", "/opt/netbox-plugin-services/dev/entrypoint.sh"] networks: - nb-services volumes: nb-services-pgdata: networks: nb-services: driver: bridge