This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.yaml
102 lines (102 loc) · 3.12 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#
# Onix CMDB - Copyright (c) 2018-2020 by www.gatblau.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
#
# Contributors to this project, hereby assign copyright in this code to the project,
# to be licensed under the same terms as the rest of the code.
#
# Docker Compose file to get the ONIX CMDB up and running
# use as follows:
# docker-compose up -d | docker-compose down, stop, start
# NOTE: after start need to call the readyness probe to deploy the database!
#
version: '3'
services:
oxdb:
image: centos/postgresql-12-centos8
container_name: oxdb
restart: always
environment:
- POSTGRESQL_ADMIN_PASSWORD=${PG_ADMIN_PWD}
ports:
- "5432:5432"
dbman:
image: gatblau/dbman-snapshot
depends_on:
- oxdb
container_name: dbman
restart: always
environment:
- OX_DBM_DB_HOST=oxdb
- OX_DBM_DB_USERNAME=${ONIX_DB_USER}
- OX_DBM_DB_PASSWORD=${ONIX_DB_PWD}
- OX_DBM_DB_ADMINUSERNAME=${PG_ADMIN_USER}
- OX_DBM_DB_ADMINPASSWORD=${PG_ADMIN_PWD}
- OX_DBM_HTTP_USERNAME=${DBMAN_HTTP_USER}
- OX_DBM_HTTP_PASSWORD=${DBMAN_HTTP_PWD}
- OX_DBM_HTTP_AUTHMODE=${DBMAN_AUTH_MODE}
- OX_DBM_APPVERSION=${DBMAN_APP_VERSION}
ports:
- "8085:8085"
oxmsg:
image: gatblau/mosquitto
container_name: oxmsg
restart: always
ports:
- "1883:1883"
onix:
image: gatblau/onix-snapshot
depends_on:
- oxdb
- dbman
- oxmsg
container_name: ox
restart: always
environment:
- DB_HOST=oxdb
- DB_USER=${ONIX_DB_USER}
- DB_PWD=${ONIX_DB_PWD}
- DB_ADMIN_USER=${PG_ADMIN_USER}
- DB_ADMIN_PWD=${PG_ADMIN_PWD}
- WAPI_AUTH_MODE=${AUTH_MODE}
- WAPI_ADMIN_USER=${ONIX_HTTP_ADMIN_USER}
- WAPI_ADMIN_PWD=${ONIX_HTTP_ADMIN_PWD}
- WAPI_EVENTS_ENABLED=${BROKER_ENABLED}
- WAPI_EVENTS_SERVER_HOST=oxmsg
- WAPI_EVENTS_SERVER_PORT=${BROKER_PORT}
ports:
- "8080:8080"
# oxkube:
# image: gatblau/oxkube-snapshot
# depends_on:
# - onix
# container_name: oxku
# restart: always
# environment:
# - OXKU_ID=kube-01
# - OXKU_ONIX_URL=${WAPI_URI}
# - OXKU_CONSUMERS_CONSUMER=webhook
# - OXKU_LOGINLEVEL=${LOGIN_LEVEL}
# - OXKU_ONIX_AUTHMODE=${AUTH_MODE}
# - OXKU_ONIX_USER=${ADMIN_USER}
# - OXKU_ONIX_PASSWORD=${ADMIN_PWD}
# ports:
# - "8000:8000"
# oxwc:
# image: gatblau/oxwc-snapshot
# depends_on:
# - onix
# container_name: oxwc
# restart: always
# environment:
# - WC_OX_WAPI_URI=${WAPI_URI}
# - WC_OX_WAPI_AUTH_MODE=${AUTH_MODE}
# ports:
# - "3000:3000"