first working version

This commit is contained in:
2026-05-04 03:26:19 +02:00
parent a417ba7457
commit fa6cf722a5
3 changed files with 12 additions and 7 deletions

View File

@ -8,6 +8,7 @@ DOMAIN=silverbullet.example.com
## Change this to your desired username. Don't leave empty!
USERNAME=admin
SB_USER="admin:password"
LETS_ENCRYPT_ENV=production
SECRET_SB_PASSWORD_VERSION=v1

View File

@ -10,7 +10,9 @@ services:
mode: 555
entrypoint: /custom-entrypoint.sh
environment:
- SB_PASSWORD=/run/secrets/sb_password
- SB_PASSWORD_FILE=/run/secrets/sb_password
- USERNAME
- SB_USER
volumes:
- sb_data:/space
secrets:
@ -38,12 +40,12 @@ services:
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
# - "backupbot.backup=true"
# - "backupbot.backup.path=/some/path"
#healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 10
start_period: 10s
networks:
proxy:

View File

@ -26,4 +26,6 @@ file_env() {
file_env "SB_PASSWORD"
export SB_USER="$USERNAME:$SB_PASSWORD"
echo "starting the program..."
/sbin/tini -- /docker-entrypoint.sh