-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 925 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 925 Bytes
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
# Local / self-hosted deployment that builds the image from source.
# For the registry-image deployment used in CI/Portainer, see docker-compose.prod.yml.
services:
sshid:
build:
context: .
dockerfile: Dockerfile
image: sshid:local
container_name: sshid
restart: unless-stopped
ports:
- "${PORT:-8080}:8080"
environment:
NODE_ENV: production
PUBLIC_ORIGIN: ${PUBLIC_ORIGIN:-http://localhost:8080}
RP_ID: ${RP_ID:-localhost}
RP_NAME: ${RP_NAME:-SSHID}
SESSION_SECRET: ${SESSION_SECRET:?set SESSION_SECRET in your .env}
LOG_LEVEL: ${LOG_LEVEL:-info}
volumes:
- sshid-data:/app/data
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:8080/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
sshid-data: