2017-08-30 11:10:55 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
app:
|
2017-12-13 15:50:30 +01:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- BRANCH=${BRANCH-master}
|
|
|
|
image: ninech/netbox:${BRANCH-latest}
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
env_file: netbox.env
|
2018-02-22 11:58:36 +01:00
|
|
|
volumes:
|
2018-04-03 09:02:19 +02:00
|
|
|
- ./configuration:/etc/netbox/config:ro
|
2017-12-13 15:50:30 +01:00
|
|
|
command:
|
|
|
|
- ./manage.py
|
|
|
|
- test
|
2017-08-30 11:10:55 +02:00
|
|
|
postgres:
|
2018-02-16 10:34:33 +01:00
|
|
|
image: postgres:10.2-alpine
|
2017-12-13 15:50:30 +01:00
|
|
|
env_file: postgres.env
|
2017-08-30 11:10:55 +02:00
|
|
|
volumes:
|
2017-12-13 15:50:30 +01:00
|
|
|
netbox-static-files:
|
|
|
|
driver: local
|
|
|
|
netbox-nginx-config:
|
|
|
|
driver: local
|