feat(homeassistant): add HomeAssistant backup
This commit is contained in:
@@ -5,7 +5,7 @@ services:
|
||||
container_name: joplin
|
||||
restart: always
|
||||
env_file:
|
||||
- ./joplin/.env
|
||||
- ${CONFIG_ROOT:-.}/joplin/.env
|
||||
environment:
|
||||
- APP_PORT=22300
|
||||
- APP_BASE_URL=https://${HOSTNAME}/joplin
|
||||
@@ -14,9 +14,9 @@ services:
|
||||
- SQLITE_DATABASE=/database/joplin.db
|
||||
- STORAGE_DRIVER=Type=Filesystem; Path=/storage
|
||||
volumes:
|
||||
- ./joplin/database:/database
|
||||
- ./joplin/storage:/storage
|
||||
- ./joplin/healthcheck:/healthcheck
|
||||
- ${CONFIG_ROOT:-.}/joplin/database:/database
|
||||
- ${CONFIG_ROOT:-.}/joplin/storage:/storage
|
||||
- ${CONFIG_ROOT:-.}/joplin/healthcheck:/healthcheck
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "/healthcheck/healthcheck.js"]
|
||||
interval: 30s
|
||||
@@ -43,15 +43,15 @@ services:
|
||||
container_name: joplin-backup
|
||||
restart: always
|
||||
env_file:
|
||||
- ./joplin/backup.env
|
||||
- ${CONFIG_ROOT:-.}/joplin/backup.env
|
||||
environment:
|
||||
- BACKUP_FOLDER_NAME=storage
|
||||
- BACKUP_FOLDER_PATH=/storage
|
||||
- DB_TYPE=sqlite
|
||||
- SQLITE_DATABASE=/database/joplin.db
|
||||
volumes:
|
||||
- ./joplin/database:/database
|
||||
- ./joplin/storage:/storage
|
||||
- ./joplin/backup:/config
|
||||
- ${CONFIG_ROOT:-.}/joplin/database:/database
|
||||
- ${CONFIG_ROOT:-.}/joplin/storage:/storage
|
||||
- ${CONFIG_ROOT:-.}/joplin/backup:/config
|
||||
profiles:
|
||||
- joplin
|
||||
Reference in New Issue
Block a user