version: '2' services: nginx: image: nginx:1.11-alpine command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf depends_on: - netbox volumes: - netbox-nginx-config:/etc/netbox-nginx/ - netbox-static-files:/opt/netbox/netbox/static ports: - 8080 netbox: image: ninech/netbox:latest depends_on: - postgres volumes: - netbox-static-files:/opt/netbox/netbox/static - netbox-nginx-config:/etc/netbox-nginx/ env_file: 'netbox.env' postgres: image: postgres:9.6-alpine environment: POSTGRES_USER: netbox POSTGRES_PASSWORD: netbox POSTGRES_DB: netbox volumes: netbox-static-files: driver: local netbox-nginx-config: driver: local