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