first working version
This commit is contained in:
@ -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
|
||||
|
||||
16
compose.yml
16
compose.yml
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user