Files
netbox/docker-compose.yml
Charles Butler e699e1f2b8 Update docker-compose file to default to the floating "develop" tag
- Instead of pinning in docker-compose we should probably follow the
  floating tag so we're at least semi-recent. It looks like we updated
  the develop build tag to be pushed along with develop.build#
2019-10-25 09:36:00 -04:00

39 lines
915 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
netbox:
image: "vaporio/netbox:develop"
environment:
SECRET_KEY: secret
DB_HOST: postgres
DB_USER: postgres
DB_PASSWORD: "12345"
ALLOWED_HOSTS: "*"
REDIS_HOST: redis
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: