#!/bin/bash set -e sudo sysctl -w vm.max_map_count=262144 up () { # docker run \ # --detach \ # --name mesh-mq \ # --volume /mammoth/mesh/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro \ # --volume /mammoth/mesh/mosquitto/passwd:/mosquitto/config/passwd:ro \ # --publish 1883:1883 \ # eclipse-mosquitto:2 # # docker run \ # --detach \ # --name mesh-es \ # --env discovery.type=single-node \ # --env http.host=0.0.0.0 \ # --env xpack.security.enabled=false \ # --volume /mammoth/mesh/elasticsearch/data:/usr/share/elasticsearch/data:rw \ # --network pew-net \ # docker.elastic.co/elasticsearch/elasticsearch:8.15.2 # # docker run \ # --detach \ # --name mesh-kb \ # --env SERVER_PUBLICBASEURL=https://kibana.caving.dev:8443 \ # --env ELASTICSEARCH_HOST='["http://mesh-es:9200"]' \ # --volume /mammoth/mesh/kibana/data:/usr/share/kibana/data:rw \ # --network pew-net \ # docker.elastic.co/kibana/kibana:8.15.2 # # docker run \ # --detach \ # --name mesh-mc \ # --network pew-net \ # memcached:1.6 docker run \ --detach \ --name mesh-fb \ --volume /mammoth/mesh/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro \ --network pew-net \ docker.elastic.co/beats/filebeat:8.15.2 # # docker run \ # --detach \ # --name mesh-lg \ # --volume /mammoth/mesh/logstash/pipeline:/usr/share/logstash/pipeline:ro \ # --network pew-net \ # docker.elastic.co/logstash/logstash-oss:8.15.2 # # docker run \ # --detach \ # --name mesh-gf \ # --user 1000 \ # --env GF_DOMAIN=mesh.caving.dev \ # --env GF_SERVER_ROOT_URL=https://mesh.caving.dev \ # --volume /mammoth/mesh/grafana/grafana:/var/lib/grafana:rw \ # --network pew-net \ # grafana/grafana-oss:11.2.1 } down () { # docker stop mesh-mq || true # docker rm mesh-mq || true # docker stop mesh-es || true # docker rm mesh-es || true # docker stop mesh-kb || true # docker rm mesh-kb || true # docker stop mesh-mc || true # docker rm mesh-mc || true docker stop mesh-fb || true docker rm mesh-fb || true # docker stop mesh-lg || true # docker rm mesh-lg || true # docker stop mesh-gf || true # docker rm mesh-gf || true } $@