Skip to content
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
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Start with Python base image
FROM python:3.12-alpine

# Set the working directory
WORKDIR /app

# Copy necessary files
COPY SimpleJadePinServer.py index.html oracle_qr.html qrcode.js /app/

# Install dependencies
RUN pip install --no-cache-dir wallycore

# Expose the required port
EXPOSE 4443

# Set the entrypoint to the main command, so additional args can be passed in docker-compose.yml
ENTRYPOINT ["python3", "/app/SimpleJadePinServer.py"]
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ The web interface will be available at http://127.0.0.1:4443

![SimpleJadePinServer web interface](docs/images/webui.png)

Running SimpleJadePinServer with Docker Compose
-----------------------------------------------

Instead of manually installing the dependencies, SimpleJadePinServer can be launched in a Docker container using the provided `docker-compose.yml` file:

```console
docker compose up
```

The web interface will be available at http://127.0.0.1:18080

Note that docker compose will start the server without TLS - use a reverse proxy like Caddy or NGINX if you need to serve from a non-localhost address.

Pointing the Jade to the pin server
-----------------------------------

Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
simple_jade_pin_server:
build: .
ports:
- "18080:4443"
volumes:
- ./key_data:/app/key_data
command: ["--no-tls"]