From 05c87e5c7be039b79d3c712b763710ddbea7faba Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Tue, 20 Jun 2023 14:52:00 +0200 Subject: [PATCH] Add basic docker compose and tiltfile --- .tool-versions | 1 + Tiltfile | 12 ++++++++++++ docker-compose.yaml | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 Tiltfile create mode 100644 docker-compose.yaml diff --git a/.tool-versions b/.tool-versions index bd47e923..c195beda 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,4 @@ # https://asdf-vm.com/ # https://github.com/jdxcode/rtx nodejs 18 +tilt latest diff --git a/Tiltfile b/Tiltfile new file mode 100644 index 00000000..eb340255 --- /dev/null +++ b/Tiltfile @@ -0,0 +1,12 @@ +# https://docs.tilt.dev/ +docker_build( + 'local/ssi-trust-registry', + context='.', + dockerfile='Dockerfile', + live_update=[ + sync('./', '/app'), + run('yarn install', trigger=['./package.json', './yarn.lock']), + ] +) + +docker_compose('docker-compose.yaml') diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..4c60d4ae --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + ssi-trust-registry: + image: ${REGISTRY:-local}/ssi-trust-registry:${IMAGE_TAG:-latest} + container_name: ssi-trust-registry + build: + context: . + dockerfile: ./Dockerfile + ports: + - 3000:3000