fix joplin

This commit is contained in:
peaklabs-dev
2024-10-08 22:11:37 +02:00
parent be03e0c587
commit 3000579bcd

View File

@@ -3,31 +3,40 @@
# tags: joplin # tags: joplin
# logo: svgs/joplin.png # logo: svgs/joplin.png
# port: 22300 # port: 22300
version: '3'
services: services:
db: postgres:
image: 'postgres:16' image: 'postgres:16'
volumes: volumes:
- './data/postgres:/var/lib/postgresql/data' - joplin-postgresql-data:/var/lib/postgresql/data'
restart: unless-stopped
environment: environment:
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
- POSTGRES_USER=$SERVICE_USER_POSTGRES - POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_DB=joplin - POSTGRES_DB=joplin
app: healthcheck:
image: 'joplin/server:latest' test:
depends_on: - CMD
- db - pg_isready
ports: - -d
- '22300:22300' - joplin
restart: unless-stopped interval: 10s
environment: timeout: 5s
- APP_PORT=22300 retries: 5
- APP_BASE_URL=$SERVICE_FQDN_JOPLIN
- DB_CLIENT=pg
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PORT=5432
- POSTGRES_HOST=db
joplin:
image: 'joplin/server:latest'
platform: 'linux/amd64'
depends_on:
postgres:
condition: service_healthy
environment:
- SERVICE_FQDN_JOPLIN_22300
- APP_BASE_URL=${SERVICE_FQDN_JOPLIN}
- DB_CLIENT=pg
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_64_POSTGRES}
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PORT=5432
- POSTGRES_HOST=postgres
# Default login is "admin@localhost" and password "admin"