-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
56 lines (54 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ╔══════════════════════════════════════════════════════════════╗
# ║ 🔐 Keyper – Docker Compose ║
# ╚══════════════════════════════════════════════════════════════╝
#
# Quick start:
# docker compose up -d # build + start in background
# docker compose up -d --build # force rebuild if source changed
# docker compose down # stop & remove containers
# docker compose logs -f # follow logs
#
# Keyper stores all user-configured data (Supabase URL, anon key,
# username, passphrase salt) in the *browser's* localStorage.
# No host volumes or environment variables are required — the user
# sets everything up through the Settings screen in the UI.
#
# To run on a different port, set the HOST_PORT environment variable:
# HOST_PORT=3030 docker compose up -d
services:
keyper:
build:
context: .
dockerfile: Dockerfile
image: keyper:latest
container_name: keyper
ports:
- "${HOST_PORT:-8080}:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# ── Optional: reverse-proxy with HTTPS via Caddy ─────────────────────────────
# Uncomment the block below if you want automatic HTTPS via Caddy.
# Replace "your-domain.com" with your actual domain.
#
# caddy:
# image: caddy:2-alpine
# container_name: keyper-caddy
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./Caddyfile:/etc/caddy/Caddyfile:ro
# - caddy_data:/data
# - caddy_config:/config
# depends_on:
# - keyper
# restart: unless-stopped
#
# volumes:
# caddy_data:
# caddy_config: