Skip to content

Commit

Permalink
Added joplin
Browse files Browse the repository at this point in the history
  • Loading branch information
salverius-tech committed Aug 20, 2023
1 parent 6c2624b commit d11e710
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions services-available/joplin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: '3'

networks:
default:
name: traefik

# https://joplinapp.org/
# https://hub.docker.com/r/joplin/server
# https://github.com/laurent22/joplin

services:
db:
image: postgres:15
container_name: ${JOPLIN_DB_CONTAINER_NAME:-joplin-db}
restart: ${JOPLIN_RESTART:-unless-stopped}
volumes:
- ./etc/joplin:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${JOPLIN_POSTGRES_PASSWORD:-postgres}
- POSTGRES_USER=${JOPLIN_POSTGRES_USER:-postgres}
- POSTGRES_DB=${JOPLIN_POSTGRES_DATABASE:-joplin}

joplin:
image: joplin/server:${JOPLIN_DOCKER_TAG:-latest}
container_name: ${JOPLIN_CONTAINER_NAME:-joplin}
restart: ${JOPLIN_RESTART:-unless-stopped}
depends_on:
- db
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ}
- APP_PORT=22300
- APP_BASE_URL=https://${JOPLIN_CONTAINER_NAME:-joplin}.${HOST_DOMAIN}
- DB_CLIENT=pg
- POSTGRES_PASSWORD=${JOPLIN_POSTGRES_PASSWORD:-postgres}
- POSTGRES_DATABASE=${JOPLIN_POSTGRES_DATABASE:-joplin}
- POSTGRES_USER=${JOPLIN_POSTGRES_USER:-postgres}
- POSTGRES_PORT=${JOPLIN_POSTGRES_PORT:-5432}
- POSTGRES_HOST=db
# - MAILER_ENABLED=1
# - MAILER_HOST=smtp.gmail.com
# - MAILER_PORT=465
# - MAILER_SECURE=1
# - [email protected]
# - MAILER_AUTH_PASSWORD=3m@1lPa55w0rD
# - MAILER_NOREPLY_NAME=JoplinServer
# - [email protected]
labels:
- joyride.host.name=${JOPLIN_CONTAINER_NAME:-joplin}.${HOST_DOMAIN}
- traefik.enable=true
- traefik.http.routers.joplin.entrypoints=websecure
- traefik.http.routers.joplin.rule=Host(`${JOPLIN_CONTAINER_NAME:-joplin}.${HOST_DOMAIN}`)
#- traefik.http.services.joplin.loadbalancer.server.scheme=https # enable if the service wants to connect over https
- traefik.http.services.joplin.loadbalancer.server.port=22300
- com.centurylinklabs.watchtower.enable=true
- autoheal=true

# Flame dashboard labels

- flame.type=application # "app" works too
- flame.name=${JOPLIN_FLAME_NAME:-joplin}
- flame.url=https://${JOPLIN_CONTAINER_NAME:-joplin}.${HOST_DOMAIN}
- flame.icon=${JOPLIN_FLAME_ICON:-docker} # optional, default is "docker"

0 comments on commit d11e710

Please sign in to comment.