Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading