Add observer, prometheus and grafana

This commit is contained in:
2026-04-24 18:20:48 +03:00
parent dad178bd0d
commit e57a2b9768
13 changed files with 1793 additions and 25 deletions

View File

@@ -0,0 +1,27 @@
FROM erlang:28-alpine
RUN apk add --no-cache \
elixir \
nodejs \
npm \
git \
inotify-tools
WORKDIR /app
RUN git clone https://github.com/thiagoesteves/observer_web.git .
RUN mix local.hex --force && mix local.rebar --force && mix deps.get
RUN mkdir -p priv/static && \
touch priv/static/app.css && touch priv/static/app.js && \
cd assets && npm install && cd .. && \
mix assets.build
# Копируем наш dev.exs с автоподключением к нодам EventHub
COPY docker/observer_web/dev.exs .
EXPOSE 4000
# Только запуск сервера, без ручного Node.connect
CMD elixir --sname observer_web@observer_web --cookie eventhub_cookie -S mix run --no-halt dev.exs