Skip to content

Commit

Permalink
Docker: Add wallet daemon and docker-compose.yml (#321)
Browse files Browse the repository at this point in the history
* add wallet dockerfile

* add wallet to docker compose

* add dockerfile

* remove expose
  • Loading branch information
callebtc authored Sep 25, 2023
1 parent 1f8d328 commit 0959314
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 23 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0959314

Please sign in to comment.