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:
|
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
|
|
|
|
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-04-21 06:46:15 -05:00
|
|
|
- 80
|
|
|
|
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
|
|
|
|
|
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
|