2017-08-30 11:10:55 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- BRANCH=${BRANCH-master}
|
|
|
|
image: ninech/netbox:${BRANCH-latest}
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
env_file: netbox.env
|
|
|
|
command:
|
|
|
|
- ./manage.py
|
|
|
|
- test
|
|
|
|
postgres:
|
|
|
|
image: postgres:9.6-alpine
|
2017-08-30 11:45:14 +02:00
|
|
|
env_file: postgres.env
|
|
|
|
|
2017-08-30 11:10:55 +02:00
|
|
|
volumes:
|
|
|
|
netbox-static-files:
|
|
|
|
driver: local
|
|
|
|
netbox-nginx-config:
|
|
|
|
driver: local
|