2024-01-02 07:59:48 +01:00
|
|
|
services:
|
|
|
|
joplin:
|
|
|
|
image: joplin/server:latest
|
|
|
|
user: root # Not pretty, but non-root breaks volumes: https://github.com/laurent22/joplin/issues/9489
|
|
|
|
container_name: joplin
|
|
|
|
restart: always
|
2024-01-04 06:00:24 +01:00
|
|
|
env_file:
|
|
|
|
- ./joplin/.env
|
2024-01-02 07:59:48 +01:00
|
|
|
environment:
|
|
|
|
- APP_PORT=22300
|
|
|
|
- APP_BASE_URL=https://${HOSTNAME}/joplin
|
|
|
|
- HOSTNAME=${HOSTNAME}
|
|
|
|
- DB_CLIENT=sqlite3
|
|
|
|
- SQLITE_DATABASE=/database/joplin.db
|
|
|
|
- STORAGE_DRIVER=Type=Filesystem; Path=/storage
|
|
|
|
volumes:
|
|
|
|
- ./joplin/database:/database
|
|
|
|
- ./joplin/storage:/storage
|
|
|
|
- ./joplin/healthcheck:/healthcheck
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "node", "/healthcheck/healthcheck.js"]
|
2024-01-19 06:41:05 +01:00
|
|
|
interval: 30s
|
2024-01-02 07:59:48 +01:00
|
|
|
retries: 10
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.joplin.rule=(Host(`${HOSTNAME}`) && PathPrefix(`/joplin`))
|
|
|
|
- traefik.http.routers.joplin.tls=true
|
|
|
|
- traefik.http.routers.joplin.tls.certresolver=myresolver
|
|
|
|
- traefik.http.routers.joplin.middlewares=joplin-stripprefix
|
|
|
|
- traefik.http.middlewares.joplin-stripprefix.stripPrefix.prefixes=/joplin
|
|
|
|
- traefik.http.services.joplin.loadbalancer.server.port=22300
|
|
|
|
- homepage.group=Apps
|
|
|
|
- homepage.name=joplin
|
|
|
|
- homepage.icon=joplin.png
|
|
|
|
- homepage.href=/joplin
|
|
|
|
- homepage.description=Note-taking application
|
|
|
|
- homepage.weight=2
|
|
|
|
profiles:
|
|
|
|
- joplin
|
|
|
|
|
|
|
|
joplin-backup:
|
|
|
|
image: adrienpoupa/rclone-backup:latest
|
|
|
|
container_name: joplin-backup
|
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- ./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
|
|
|
|
profiles:
|
|
|
|
- joplin
|