Skip to content

devhub-tools/uptime

Repository files navigation

coverbot badge

Uptime

Develop

Run

To start your Phoenix server:

  • Copy the environment config
  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Orchestrate

To run the docker compose orchestration with Traefik reverse proxy with DNS for the services:

First, install dnsmasq (brew install dnsmasq) and edit dnsmasq.conf.

sudo vim $(brew --prefix)/etc/dnsmasq.conf
address=/uptime.arpa/127.0.0.1
resolv-file=/etc/resolver/arpa
port=53

Then, add the resolver:

mkdir -v /etc/resolver
sudo vim /etc/resolver/arpa
nameserver 127.0.0.1
sudo brew services start dnsmasq

See also: https://gist.github.com/ogrrd/5831371