metamigo-api: runs in docker now

* great typescript module import refactor
* refactor metamigo-cli so it is the entrypoint for the db, api, and
  worker
This commit is contained in:
Abel Luck 2023-06-02 14:05:20 +00:00
parent b45e2e8c11
commit 696ba16cb7
78 changed files with 319 additions and 180 deletions

View file

@ -181,7 +181,7 @@ services:
metamigo-api:
build:
context: .
dockerfile: ./apps/metamigo-api/Dockerfile
dockerfile: ./apps/metamigo-cli/Dockerfile
container_name: metamigo-api
restart: ${RESTART}
command: [ "api" ]
@ -189,7 +189,7 @@ services:
- 127.0.0.1:8004:3001
environment: *common-metamigo-variables
volumes:
- ./signald:/signald
- ./signald-state:/signald
depends_on:
- metamigo-postgresql
- signald
@ -221,7 +221,7 @@ services:
restart: ${RESTART}
user: ${CURRENT_UID}
volumes:
- ../signald:/signald
- ./signald-state:/signald
environment:
<<: *common-global-variables