mirror of
https://github.com/bsmithio/OPNsense-Dashboard.git
synced 2026-06-14 04:11:19 +00:00
If you have a previous version of MongoDB(4.4, 5.0) you will need to make some quick configurations before you apply this.
If you are on 4.4, shell into your mongodb container, type mongo, and enter this command `db.adminCommand( { setFeatureCompatibilityVersion: "4.4" } )`.
Change mongo:6.0.4 to mongo:5.0 and apply this docker-compose file.
Shell back into your mongodb container and enter this command, `db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )`.
Change mongo:5.0 back to mongo:6.0.4 and apply this docker-compose file.
89 lines
2.9 KiB
YAML
89 lines
2.9 KiB
YAML
version: '3'
|
|
services:
|
|
mongodb:
|
|
container_name: mongodb
|
|
image: mongo:6.0.4
|
|
volumes:
|
|
- mongodb_data:/data/db
|
|
restart: "unless-stopped"
|
|
environment:
|
|
# Change this to your time zone, valid time zones can be found here: https://www.joda.org/joda-time/timezones.html
|
|
- TZ=CST6CDT
|
|
elasticsearch:
|
|
container_name: elasticsearch
|
|
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
|
|
volumes:
|
|
- es_data:/usr/share/elasticsearch/data
|
|
environment:
|
|
# Change this to your time zone, valid time zones can be found here: https://www.joda.org/joda-time/timezones.html
|
|
- TZ=CST6CDT
|
|
- http.host=0.0.0.0
|
|
- transport.host=localhost
|
|
- network.host=0.0.0.0
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
restart: "unless-stopped"
|
|
graylog:
|
|
container_name: graylog
|
|
image: graylog/graylog:5.0.2
|
|
volumes:
|
|
- graylog_data:/usr/share/graylog/data
|
|
environment:
|
|
# Change these to your time zone, valid time zones can be found here: https://www.joda.org/joda-time/timezones.html
|
|
- TZ=CST6CDT
|
|
- ROOT_TIMEZONE=CST6CDT
|
|
- GRAYLOG_TIMEZONE=CST6CDT
|
|
# CHANGE ME (must be at least 16 characters)! This is not your password, this is meant for salting the password below.
|
|
- GRAYLOG_PASSWORD_SECRET=ZDcwMzQ3NTE4ZTIwM
|
|
# Username is "admin"
|
|
# Password is "admin", change this to your own hashed password. 'echo -n "password" | sha256sum'
|
|
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
|
|
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
|
|
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
|
|
links:
|
|
- mongodb:mongo
|
|
- elasticsearch
|
|
depends_on:
|
|
- mongodb
|
|
- elasticsearch
|
|
ports:
|
|
# Graylog web interface and REST API
|
|
- 9000:9000
|
|
# Syslog UDP
|
|
- 1514:1514/udp
|
|
# Syslog TCP
|
|
- 1514:1514
|
|
restart: "unless-stopped"
|
|
influxdb:
|
|
container_name: influxdb
|
|
image: influxdb:2.6.1
|
|
ports:
|
|
- '8086:8086'
|
|
volumes:
|
|
- influxdb2_data:/var/lib/influxdb2
|
|
environment:
|
|
# Change this to your time zone, valid time zones can be found here: https://www.joda.org/joda-time/timezones.html
|
|
- TZ=CST6CDT
|
|
restart: "unless-stopped"
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana:9.2.10
|
|
ports:
|
|
- '3000:3000'
|
|
volumes:
|
|
- grafana_data:/var/lib/grafana
|
|
depends_on:
|
|
- influxdb
|
|
environment:
|
|
# Change this to your time zone, valid time zones can be found here: https://www.joda.org/joda-time/timezones.html
|
|
- TZ=CST6CDT
|
|
# Change these
|
|
- GF_SECURITY_ADMIN_USER=opnsense
|
|
- GF_SECURITY_ADMIN_PASSWORD=opnsense
|
|
- GF_INSTALL_PLUGINS=grafana-worldmap-panel
|
|
restart: "unless-stopped"
|
|
volumes:
|
|
grafana_data:
|
|
influxdb2_data:
|
|
graylog_data:
|
|
es_data:
|
|
mongodb_data:
|