Simple License Server is a self-hosted license server for SaaS and desktop developers.
357
Simple License Server is a self-hosted license server for SaaS and desktop developers who need a reliable license key API. Run it in Docker, store data in Postgres, and integrate in your own infrastructure.
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: simple_license_server
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d simple_license_server"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
# Optional: expose Postgres to your host for debugging.
# ports:
# - "5432:5432"
api:
image: bytebardorg/simplelicenseserver
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
environment:
# REQUIRED: database connection used by the API service.
DATABASE_URL: postgres://postgres:postgres@postgres:5432/simple_license_server?sslmode=disable
# REQUIRED: at least one server key (16+ chars). You can also use SERVER_API_KEY.
SERVER_API_KEYS: server_key_dev_123456
# OPTIONAL: API listen port (default: 8080).
PORT: "8080"
# OPTIONAL: request and server shutdown controls.
REQUEST_TIMEOUT: 15s
SHUTDOWN_TIMEOUT: 10s
HTTP_READ_TIMEOUT: 15s
HTTP_WRITE_TIMEOUT: 30s
HTTP_IDLE_TIMEOUT: 60s
# OPTIONAL: global and per-IP rate limiting.
RATE_LIMIT_ENABLED: "true"
RATE_LIMIT_GLOBAL_RPS: "100"
RATE_LIMIT_GLOBAL_BURST: "200"
RATE_LIMIT_PER_IP_RPS: "20"
RATE_LIMIT_PER_IP_BURST: "40"
RATE_LIMIT_IP_TTL: 10m
RATE_LIMIT_MAX_IP_ENTRIES: "10000"
# OPTIONAL: set true only when a trusted proxy sets forwarding headers.
TRUST_PROXY_HEADERS: "false"
volumes:
postgres_data:
Content type
Image
Digest
sha256:17466683b…
Size
8.3 MB
Last updated
3 months ago
docker pull bytebardorg/simplelicenseserver