Skip to main content
Version: 0.0.2

Docker Installation

docker-compose.yml

services:
frontend:
image: cheinisch/dockwallet-frontend:latest
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- backend

backend:
image: cheinisch/dockwallet-backend:latest
restart: unless-stopped
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: dockwallet
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
depends_on:
db:
condition: service_healthy

db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: dockwallet
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d dockwallet"]
interval: 5s
timeout: 5s
retries: 5

volumes:
postgres_data:

.env.example

DB_PASSWORD=a_secure_password
JWT_SECRET=a_long_random_string
SERVER_HOST=example.com
USER_REGISTRATION=false
Generate a JWT Secret
openssl rand -base64 32