Commit d31b00ee236309bc93db3d24c16cd3b7ecd3f73d

Authored by George Vlahavas
1 parent 9e372b60c8

Use environment vars for the RSyslog server

Showing 2 changed files with 11 additions and 0 deletions

docker-compose-hetzner.yml View file @ d31b00e
... ... @@ -144,6 +144,8 @@
144 144 - "OD_GRAFANA_PARAMS=${OD_GRAFANA_PARAMS}"
145 145 - "MLTD_GRAFANA_PARAMS=${MLTD_GRAFANA_PARAMS}"
146 146 - "CEPTD_KIBANA_PARAMS=${CEPTD_KIBANA_PARAMS}"
  147 + - "RSYSLOG_SERVER=${RSYSLOG_SERVER}"
  148 + - "RSYSLOG_PORT=${RSYSLOG_PORT}"
147 149 networks:
148 150 - "proxy-network"
149 151  
... ... @@ -153,6 +155,9 @@
153 155 container_name: kea_od
154 156 depends_on:
155 157 - timescaledb
  158 + environment:
  159 + - "RSYSLOG_SERVER=${RSYSLOG_SERVER}"
  160 + - "RSYSLOG_PORT=${RSYSLOG_PORT}"
156 161 restart: unless-stopped
157 162 expose:
158 163 - 9091
... ... @@ -166,6 +171,9 @@
166 171 depends_on:
167 172 - timescaledb
168 173 - mosquitto
  174 + environment:
  175 + - "RSYSLOG_SERVER=${RSYSLOG_SERVER}"
  176 + - "RSYSLOG_PORT=${RSYSLOG_PORT}"
169 177 restart: unless-stopped
170 178 expose:
171 179 - 5000
hetzner_deploy.groovy View file @ d31b00e
... ... @@ -76,6 +76,9 @@
76 76 OD_GRAFANA_PARAMS = "/d/qDDyJZ6Wz/od?orgId=1"
77 77 MLTD_GRAFANA_PARAMS = "/d/dtCrgk6Wk/mltd?orgId=1"
78 78 CEPTD_KIBANA_PARAMS = "/app/kibana#/dashboard/Suricata?_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-15m%2Cto%3Anow))"
  79 +
  80 + RSYSLOG_SERVER = credentials('rsyslog-ip')
  81 + RSYSLOG_PORT = credentials('rsyslog-port')
79 82 }
80 83  
81 84 stages {