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:
|
|
|
|
- BRANCH=${BRANCH-master}
|
2017-08-30 11:07:28 +02:00
|
|
|
image: ninech/netbox:${BRANCH-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:
|
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
|
|
|
|
nginx:
|
2017-04-21 13:46:15 +02:00
|
|
|
image: nginx:1.11-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-04-21 13:46:15 +02: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 11:45:14 +02:00
|
|
|
env_file: postgres.env
|
|
|
|
|
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
|