netbox-docker/docker-compose.yml

34 lines
848 B
YAML
Raw Normal View History

2017-04-21 06:46:15 -05:00
version: '3'
services:
netbox:
build:
context: .
args:
- BRANCH=${BRANCH-master}
image: ninech/netbox:${BRANCH-latest}
depends_on:
- postgres
2017-04-21 06:46:15 -05:00
env_file: netbox.env
volumes:
2017-04-21 06:46:15 -05:00
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
nginx:
2017-04-21 06:46:15 -05:00
image: nginx:1.11-alpine
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
env_file: postgres.env
volumes:
netbox-static-files:
driver: local
2017-04-21 06:46:15 -05:00
netbox-nginx-config:
driver: local