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"]