app-store/apps/joplin/docker-compose.yml
Nicolas Meienberger 01c6836796
local domain configs H-L (#678)
* feat(halo): change config to support local domain

* feat(hammond): change config to support local domain

* feat(haven): change config to support local domain

* feat(hedgedoc): change config to support local domain

* feat(hello-world): change config to support local domain

* feat(homarr): change config to support local domain

* feat(homebox): change config to support local domain

* feat(immich): change config to support local domain

* feat(invidious): change config to support local domain

* feat(it-tools): change config to support local domain

* feat(jackett): change config to support local domain

* feat(jellyseerr): change config to support local domain

* feat(joplin): change config to support local domain

* feat(kandboard): change config to support local domain

* feat(kapowarr): change config to support local domain

* feat(kavita): change config to support local domain

* feat(libreddit): change config to support local domain

* feat(librephotos): change config to support local domain

* feat(libretranslate): change config to support local domain

* feat(lidarr): change config to support local domain

* feat(lidarr-deemix): change config to support local domain

* feat(linkstack): change config to support local domain

* feat(lodestone-core): change config to support local domain
2023-06-10 17:29:03 +02:00

65 lines
2.3 KiB
YAML

version: "3.7"
services:
joplin:
container_name: joplin
image: florider89/joplin-server:2.10.11
restart: unless-stopped
depends_on:
- db-joplin
ports:
- ${APP_PORT}:22300
dns:
- ${DNS_IP}
environment:
- APP_PORT=22300
- APP_BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}/
- DB_CLIENT=pg
- POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
- POSTGRES_USER=tipi
- POSTGRES_DATABASE=joplin
- POSTGRES_PORT=5432
- POSTGRES_HOST=db-joplin
- MAX_TIME_DRIFT=0
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.joplin-web-redirect.redirectscheme.scheme: https
traefik.http.services.joplin.loadbalancer.passhostheader: true
traefik.http.services.joplin.loadbalancer.server.port: 22300
# Web
traefik.http.routers.joplin-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.joplin-insecure.entrypoints: web
traefik.http.routers.joplin-insecure.service: joplin
traefik.http.routers.joplin-insecure.middlewares: joplin-web-redirect
# Websecure
traefik.http.routers.joplin.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.joplin.entrypoints: websecure
traefik.http.routers.joplin.service: joplin
traefik.http.routers.joplin.tls.certresolver: myresolver
# Local domain
traefik.http.routers.joplin-local-insecure.rule: Host(`joplin.${LOCAL_DOMAIN}`)
traefik.http.routers.joplin-local-insecure.entrypoints: web
traefik.http.routers.joplin-local-insecure.service: joplin
traefik.http.routers.joplin-local-insecure.middlewares: joplin-web-redirect
# Local domain secure
traefik.http.routers.joplin-local.rule: Host(`joplin.${LOCAL_DOMAIN}`)
traefik.http.routers.joplin-local.entrypoints: websecure
traefik.http.routers.joplin-local.service: joplin
traefik.http.routers.joplin-local.tls: true
db-joplin:
container_name: db-joplin
image: postgres:14.2
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
- POSTGRES_USER=tipi
- POSTGRES_DB=joplin
networks:
- tipi_main_network