2017-04-21 13:46:15 +02:00
|
|
|
version: '3'
|
2017-04-19 16:48:21 +02:00
|
|
|
services:
|
|
|
|
netbox:
|
2017-06-09 10:14:43 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
2017-10-16 13:33:12 +02:00
|
|
|
- BRANCH=${VERSION-master}
|
|
|
|
image: ninech/netbox:${VERSION-latest}
|
2017-04-19 16:48:21 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2017-04-21 13:46:15 +02:00
|
|
|
env_file: netbox.env
|
2017-04-19 16:48:21 +02:00
|
|
|
volumes:
|
2018-02-16 10:30:26 +01:00
|
|
|
- ./startup_scripts:/opt/netbox/startup_scripts:ro
|
|
|
|
- ./initializers:/opt/netbox/initializers:ro
|
2018-04-03 09:02:19 +02:00
|
|
|
- ./configuration:/etc/netbox/config:ro
|
2017-04-21 13:46:15 +02:00
|
|
|
- netbox-nginx-config:/etc/netbox-nginx/
|
2017-04-19 16:48:21 +02:00
|
|
|
- netbox-static-files:/opt/netbox/netbox/static
|
2017-12-13 15:50:30 +01:00
|
|
|
- netbox-media-files:/opt/netbox/netbox/media
|
2018-04-03 09:02:19 +02:00
|
|
|
- netbox-report-files:/etc/netbox/reports:ro
|
2017-04-19 16:48:21 +02:00
|
|
|
nginx:
|
2018-02-16 10:34:33 +01:00
|
|
|
image: nginx:1.13-alpine
|
2017-04-19 16:48:21 +02:00
|
|
|
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
|
|
|
|
depends_on:
|
|
|
|
- netbox
|
|
|
|
ports:
|
2017-12-13 15:50:30 +01:00
|
|
|
- 8080
|
2017-04-21 13:46:15 +02:00
|
|
|
volumes:
|
2018-02-16 10:30:26 +01:00
|
|
|
- netbox-static-files:/opt/netbox/netbox/static:ro
|
|
|
|
- netbox-nginx-config:/etc/netbox-nginx/:ro
|
2017-04-21 13:46:15 +02:00
|
|
|
postgres:
|
2018-07-28 18:22:55 +02:00
|
|
|
image: postgres:10.4-alpine
|
2017-08-30 11:45:14 +02:00
|
|
|
env_file: postgres.env
|
2018-01-10 20:29:41 +01:00
|
|
|
volumes:
|
|
|
|
- netbox-postgres-data:/var/lib/postgresql/data
|
2017-08-30 11:45:14 +02:00
|
|
|
|
2017-04-19 16:48:21 +02:00
|
|
|
volumes:
|
|
|
|
netbox-static-files:
|
|
|
|
driver: local
|
2017-04-21 13:46:15 +02:00
|
|
|
netbox-nginx-config:
|
|
|
|
driver: local
|
2017-12-13 15:50:30 +01:00
|
|
|
netbox-media-files:
|
|
|
|
driver: local
|
|
|
|
netbox-report-files:
|
|
|
|
driver: local
|
2018-01-10 20:29:41 +01:00
|
|
|
netbox-postgres-data:
|
|
|
|
driver: local
|