netbox-docker/docker-compose.yml

29 lines
727 B
YAML
Raw Normal View History

2017-04-21 13:46:15 +02:00
version: '3'
services:
netbox:
build:
context: .
args:
2017-10-16 13:33:12 +02:00
- BRANCH=${VERSION-master}
image: ninech/netbox:${VERSION-latest}
depends_on:
- postgres
2017-04-21 13:46:15 +02:00
env_file: netbox.env
volumes:
- netbox-static-files:/opt/netbox/netbox/static
nginx:
2017-04-21 13:46:15 +02:00
image: nginx:1.11-alpine
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
ports:
2017-04-21 13:46:15 +02:00
- 80
volumes:
- netbox-static-files:/opt/netbox/netbox/static
- ./docker/nginx.conf:/etc/netbox-nginx/nginx.conf
2017-04-21 13:46:15 +02:00
postgres:
image: postgres:9.6-alpine
env_file: postgres.env
volumes:
netbox-static-files:
driver: local