version: '3' services: netbox: build: context: . args: - BRANCH=${VERSION-master} image: ninech/netbox:${VERSION-latest} depends_on: - postgres env_file: netbox.env volumes: - netbox-static-files:/opt/netbox/netbox/static nginx: image: nginx:1.11-alpine command: nginx -g 'daemon off;' -c /etc/netbox-nginx/nginx.conf ports: - 80 volumes: - netbox-static-files:/opt/netbox/netbox/static - ./docker/nginx.conf:/etc/netbox-nginx/nginx.conf postgres: image: postgres:9.6-alpine env_file: postgres.env volumes: netbox-static-files: driver: local