2017-04-21 06:46:15 -05:00
|
|
|
version: '3'
|
2017-04-19 09:48:21 -05:00
|
|
|
services:
|
|
|
|
netbox:
|
|
|
|
build: .
|
2017-04-21 06:46:15 -05:00
|
|
|
image: digitalocean/netbox:v2.0-beta2
|
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
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: netbox
|
|
|
|
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
|
|
|
|
POSTGRES_DB: netbox
|
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
|