Initial commit
This commit is contained in:
commit
4ff9eac274
45 files changed
+2911
No files matched your search
@@ -0,0 +1,45 @@
|
||||
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
|
||||
Reference in new issue
Block a user