mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
use volumes of netbox, holding default config
This commit is contained in:
@ -9,12 +9,14 @@ 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
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
ports:
|
||||||
|
- 8001:8001
|
||||||
environment:
|
environment:
|
||||||
SUPERUSER_NAME: admin
|
SUPERUSER_NAME: admin
|
||||||
SUPERUSER_EMAIL: admin@example.com
|
SUPERUSER_EMAIL: admin@example.com
|
||||||
@ -34,20 +36,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