mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-12-26 00:29:17 +01:00
b46bd58e0a
With this the configuration is moved to /etc/netbox/config and the default reports directory is set to /etc/netbox/reports. This enables the user to mount reports from a config map or persistent volume in OpenShift.
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
version: '3'
|
|
services:
|
|
netbox:
|
|
build:
|
|
context: .
|
|
args:
|
|
- BRANCH=${VERSION-master}
|
|
image: ninech/netbox:${VERSION-latest}
|
|
depends_on:
|
|
- postgres
|
|
env_file: netbox.env
|
|
volumes:
|
|
- ./startup_scripts:/opt/netbox/startup_scripts:ro
|
|
- ./initializers:/opt/netbox/initializers:ro
|
|
- ./configuration:/etc/netbox/config:ro
|
|
- netbox-nginx-config:/etc/netbox-nginx/
|
|
- netbox-static-files:/opt/netbox/netbox/static
|
|
- netbox-media-files:/opt/netbox/netbox/media
|
|
- netbox-report-files:/etc/netbox/reports:ro
|
|
nginx:
|
|
image: nginx:1.13-alpine
|
|
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
|
|
depends_on:
|
|
- netbox
|
|
ports:
|
|
- 8080
|
|
volumes:
|
|
- netbox-static-files:/opt/netbox/netbox/static:ro
|
|
- netbox-nginx-config:/etc/netbox-nginx/:ro
|
|
postgres:
|
|
image: postgres:10.2-alpine
|
|
env_file: postgres.env
|
|
volumes:
|
|
- netbox-postgres-data:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
netbox-static-files:
|
|
driver: local
|
|
netbox-nginx-config:
|
|
driver: local
|
|
netbox-media-files:
|
|
driver: local
|
|
netbox-report-files:
|
|
driver: local
|
|
netbox-postgres-data:
|
|
driver: local
|