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-01-24 02:21:55 -06:00
|
|
|
- ./docker/startup_scripts:/opt/netbox/netbox/startup_scripts
|
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:
|
2017-04-21 06:46:15 -05:00
|
|
|
image: nginx:1.11-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:
|
|
|
|
- netbox-static-files:/opt/netbox/netbox/static
|
|
|
|
- netbox-nginx-config:/etc/netbox-nginx/
|
|
|
|
postgres:
|
|
|
|
image: postgres:9.6-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
|