mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-27 02:14:14 +01:00
ef76e4e8ea
With these modifications the netbox containers can run on Openshift. The configuration files can be imported from a config map to the '/etc/netbox' directory and will be loaded from there.
25 lines
488 B
YAML
25 lines
488 B
YAML
version: '3'
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
args:
|
|
- BRANCH=${BRANCH-master}
|
|
image: ninech/netbox:${BRANCH-latest}
|
|
depends_on:
|
|
- postgres
|
|
env_file: netbox.env
|
|
volumes:
|
|
- ./configuration:/etc/netbox:ro
|
|
command:
|
|
- ./manage.py
|
|
- test
|
|
postgres:
|
|
image: postgres:10.2-alpine
|
|
env_file: postgres.env
|
|
volumes:
|
|
netbox-static-files:
|
|
driver: local
|
|
netbox-nginx-config:
|
|
driver: local
|