Add observer, prometheus and grafana
This commit is contained in:
27
docker/ObserverWeb.Dockerfile
Normal file
27
docker/ObserverWeb.Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user