mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 04:12:25 -06:00
42 lines
979 B
YAML
42 lines
979 B
YAML
version: '3'
|
|
services:
|
|
postgres:
|
|
image: "postgres:9.6"
|
|
environment:
|
|
POSTGRES_PASSWORD: "12345"
|
|
POSTGRES_DB: netbox
|
|
ports:
|
|
- 5432:5432
|
|
redis:
|
|
image: "redis"
|
|
nginx:
|
|
image: "nginx"
|
|
volumes:
|
|
- "static:/opt/netbox/netbox/static"
|
|
- "./docker/nginx.conf:/etc/nginx/nginx.conf"
|
|
ports:
|
|
- 8000:80
|
|
depends_on:
|
|
- netbox
|
|
netbox:
|
|
image: "vaporio/netbox:develop"
|
|
environment:
|
|
SECRET_KEY: secret
|
|
DB_HOST: postgres
|
|
DB_USER: postgres
|
|
DB_PASSWORD: "12345"
|
|
ALLOWED_HOSTS: "*"
|
|
REDIS_HOST: redis
|
|
SKIP_STARTUP_SCRIPTS: "true"
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
volumes:
|
|
- "./netbox:/opt/netbox/netbox"
|
|
- "static:/opt/netbox/netbox/static"
|
|
- "./docker/configuration.docker.py:/opt/netbox/netbox/netbox/configuration.py"
|
|
- "./docker/startup_scripts/:/opt/netbox/startup_scripts"
|
|
- "./docker/initializers/:/opt/netbox/initializers"
|
|
volumes:
|
|
static:
|