Skip to content

Instantly share code, notes, and snippets.

@RyanD0001
Created October 20, 2017 12:49
Show Gist options
  • Save RyanD0001/e4cd0a884b0cae94f480ed52e0e2a4c0 to your computer and use it in GitHub Desktop.
Save RyanD0001/e4cd0a884b0cae94f480ed52e0e2a4c0 to your computer and use it in GitHub Desktop.
version: '3'
services:
netbox:
build:
context: .
#args:
# - BRANCH=${VERSION-master}
image: ninech/netbox:v2.1.6
depends_on:
- postgres
env_file: netbox.env
volumes:
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
nginx:
image: nginx:1.11-alpine
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
depends_on:
- netbox
ports:
- 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
netbox-nginx-config:
driver: local
version: '3'
services:
netbox:
build:
context: .
#args:
# - BRANCH=${VERSION-master}
image: ninech/netbox:v2.1.6
depends_on:
- postgres
env_file: netbox.env
volumes:
- netbox-nginx-config:/etc/netbox-nginx/
- netbox-static-files:/opt/netbox/netbox/static
nginx:
image: nginx:1.11-alpine
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
depends_on:
- netbox
ports:
- 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
netbox-nginx-config:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment