This commit is contained in:
Viktor Fogelberg 2017-12-01 14:45:42 +00:00 committed by GitHub
commit 17e211edd0
2 changed files with 1 additions and 7 deletions

View file

@ -30,7 +30,6 @@ RUN pip install -r requirements.txt
COPY docker/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
COPY docker/gunicorn_config.py /opt/netbox/
COPY docker/nginx.conf /etc/netbox-nginx/nginx.conf
WORKDIR /opt/netbox/netbox

View file

@ -10,18 +10,15 @@ services:
- 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/
- ./docker/nginx.conf:/etc/netbox-nginx/nginx.conf
postgres:
image: postgres:9.6-alpine
env_file: postgres.env
@ -29,5 +26,3 @@ services:
volumes:
netbox-static-files:
driver: local
netbox-nginx-config:
driver: local