mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Merge branch 'develop' of github.com:digitalocean/netbox into develop
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ configuration.py
|
|||||||
/*.sh
|
/*.sh
|
||||||
!upgrade.sh
|
!upgrade.sh
|
||||||
fabfile.py
|
fabfile.py
|
||||||
|
*.swp
|
||||||
|
@ -21,5 +21,10 @@ RUN apt-get update && apt-get install -y \
|
|||||||
&& apt-get purge -y --auto-remove git build-essential
|
&& apt-get purge -y --auto-remove git build-essential
|
||||||
|
|
||||||
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
|
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
|
||||||
|
ADD docker/gunicorn_config.py /opt/netbox/
|
||||||
|
ADD docker/nginx.conf /etc/netbox-nginx/
|
||||||
|
VOLUME ["/etc/netbox-nginx/"]
|
||||||
|
@ -9,7 +9,7 @@ services:
|
|||||||
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
|
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
|
||||||
POSTGRES_DB: netbox
|
POSTGRES_DB: netbox
|
||||||
netbox:
|
netbox:
|
||||||
build: .
|
image: digitalocean/netbox
|
||||||
links:
|
links:
|
||||||
- postgres
|
- postgres
|
||||||
container_name: netbox
|
container_name: netbox
|
||||||
@ -34,20 +34,17 @@ services:
|
|||||||
NETBOX_USERNAME: guest
|
NETBOX_USERNAME: guest
|
||||||
NETBOX_PASSWORD: guest
|
NETBOX_PASSWORD: guest
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/netbox/netbox/configuration.docker.py:/opt/netbox/netbox/netbox/configuration.py:ro
|
|
||||||
- $PWD/docker/gunicorn_config.py:/opt/netbox/gunicorn_config.py:ro
|
|
||||||
- netbox-static-files:/opt/netbox/netbox/static
|
- netbox-static-files:/opt/netbox/netbox/static
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.11.1-alpine
|
image: nginx:1.11.1-alpine
|
||||||
links:
|
links:
|
||||||
- netbox
|
- netbox
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
|
command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf
|
||||||
depends_on:
|
depends_on:
|
||||||
- netbox
|
- netbox
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
|
||||||
- $PWD/docker/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- netbox
|
- netbox
|
||||||
volumes:
|
volumes:
|
||||||
|
Reference in New Issue
Block a user