31 lines
967 B
YAML
31 lines
967 B
YAML
|
|
services:
|
||
|
|
hemmelig:
|
||
|
|
image: hemmeligapp/hemmelig:v7
|
||
|
|
container_name: hemmelig
|
||
|
|
restart: unless-stopped
|
||
|
|
volumes:
|
||
|
|
- ./database:/app/database
|
||
|
|
- ./uploads:/app/uploads
|
||
|
|
environment:
|
||
|
|
- DATABASE_URL=file:/app/database/hemmelig.db
|
||
|
|
- BETTER_AUTH_SECRET=change-this-to-a-secure-secret-min-32-chars
|
||
|
|
- BETTER_AUTH_URL=https://secrets.example.com
|
||
|
|
- NODE_ENV=production
|
||
|
|
- HEMMELIG_BASE_URL=https://secrets.example.com
|
||
|
|
ports:
|
||
|
|
- '3000:3000'
|
||
|
|
healthcheck:
|
||
|
|
test:
|
||
|
|
[
|
||
|
|
'CMD',
|
||
|
|
'wget',
|
||
|
|
'--no-verbose',
|
||
|
|
'--tries=1',
|
||
|
|
'--spider',
|
||
|
|
'http://localhost:3000/api/health/ready',
|
||
|
|
]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 10s
|