From 095931478635755e56e0a7d8f3c41a2714d23386 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 25 Sep 2023 18:09:08 +0200 Subject: [PATCH] Docker: Add wallet daemon and `docker-compose.yml` (#321) * add wallet dockerfile * add wallet to docker compose * add dockerfile * remove expose --- Dockerfile | 2 -- docker-compose.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile index b1fb42ca..6d65364a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,3 @@ WORKDIR /app COPY . . RUN poetry config virtualenvs.create false RUN poetry install --no-dev --no-root -EXPOSE 3338 -CMD ["poetry", "run", "mint", "--port", "3338", "--host", "0.0.0.0"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..fc6117d7 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,23 @@ +version: "3" +services: + mint: + build: + context: . + dockerfile: Dockerfile + container_name: mint + ports: + - "3338:3338" + command: ["poetry", "run", "mint", "--port", "3338", "--host", "0.0.0.0"] + wallet: + build: + context: . + dockerfile: Dockerfile + container_name: wallet + ports: + - "4448:4448" + depends_on: + - mint + environment: + - MINT_URL=http://mint:3338 + - API_HOST=0.0.0.0 + command: ["poetry", "run", "cashu", "-d"]