Docker: Add wallet daemon and docker-compose.yml (#321)

* add wallet dockerfile

* add wallet to docker compose

* add dockerfile

* remove expose
This commit is contained in:
callebtc
2023-09-25 18:09:08 +02:00
committed by GitHub
parent 1f8d328354
commit 0959314786
2 changed files with 23 additions and 2 deletions

View File

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

23
docker-compose.yaml Normal file
View File

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