Attension! Work in progress. Not for production

Requirements specified versions

  • docker 20.10.14
  • docker-compose 1.25.0

Before development

Add local hosts

sudo tee -a /etc/hosts > /dev/null <<EOT
127.0.0.1   hubs.local
127.0.0.1   hubs-proxy.local
127.0.0.1   hubs-assets.local
127.0.0.1   hubs-link.local
127.0.0.1   hubs-reticulum.local
127.0.0.1   dialog.local
EOT

Development

clone repo with submodules

git clone --depth=1 --recurse-submodules https://github.com/Fi1osof/mozilla-hubs-docker
cd mozilla-hubs-docker

proxy-server

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build proxy

Mail server

For local debug only

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build mail

Visit http://localhost:8025

DB

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build db

Reticulum

Edit reticulum/reticulum/config/dev.exs

Replace

config :ret, Ret.Mailer, adapter: Bamboo.LocalAdapter

with

config :ret, Ret.Mailer, adapter: Bamboo.SMTPAdapter,
  server: "mail",
  port: 1025,
  tls: :never,
  tls_verify: :verify_none,
  hostname: "hubs.local",
  username: "hubs@hubs.local",
  retries: 3

run reticulum server

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build reticulum

Visit https://hubs.local:4000 and accept self-signet certificate and close this window.

Dialog

docker-compose up -d --build dialog

Visit https://dialog:4443 and accept self-signet certificate and close this window.

Hubs

docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build hubs

Visit https://hubs.local:8080 and accept self-signet certificate.

Spoke

docker-compose up -d --build spoke

Vitis https://hubs.local:4000/spoke

PostgREST

docker-compose up -d --build postgrest

Admin

docker-compose up -d --build admin

Vitis https://hubs.local:4000/admin