Server that allows the connection between Miakapp users and the coordinator.
-
Install dependencies
npm i
-
Configuration
Create a
.env
file or set env variables:SERVER_URL=miakapi-example1.domain.com SERVER_NAME=Name (Region, Country) FIREBASE_CREDENTIALS={"type":"service_account", ...}
SERVER_URL
andSERVER_NAME
are optional.
version: '3'
services:
miakapp-server:
image: ghcr.io/miakapp/miakapp-server:latest
restart: always
environment:
SERVER_URL: ${SERVER_URL}
SERVER_NAME: ${SERVER_NAME}
FIREBASE_CREDENTIALS: ${FIREBASE_CREDENTIALS}
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.miakapp.rule=Host(`${SERVER_URL}`)'
- 'traefik.http.routers.miakapp.entrypoints=https'
networks:
default:
name: traefik_web
external: true