Guest User

joplin server compose

a guest
Jun 18th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.67 KB | None | 0 0
  1. services:
  2.   joplin-db:
  3.     image: postgres:16
  4.     container_name: joplin-db
  5.     volumes:
  6.      - ./data/postgres:/var/lib/postgresql/data
  7.     restart: unless-stopped
  8.     environment:
  9.      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  10.       - POSTGRES_USER=${POSTGRES_USER}
  11.       - POSTGRES_DB=${POSTGRES_DATABASE}
  12.     networks:
  13.      - joplin_network
  14.   joplin-app:
  15.     image: joplin/server:latest
  16.     container_name: joplin-app
  17.     depends_on:
  18.      - joplin-db
  19.     restart: unless-stopped
  20.     environment:
  21.      - APP_PORT=22300
  22.       - APP_BASE_URL=${APP_BASE_URL}
  23.       - DB_CLIENT=pg
  24.       - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  25.       - POSTGRES_DATABASE=${POSTGRES_DATABASE}
  26.       - POSTGRES_USER=${POSTGRES_USER}
  27.       - POSTGRES_PORT=${POSTGRES_PORT}
  28.       - POSTGRES_HOST=joplin-db
  29.       - MAILER_ENABLED=true
  30.       - MAILER_SECURITY=starttls
  31.       - MAILER_HOST=${MAILER_HOST}
  32.       - MAILER_PORT=${MAILER_PORT}
  33.       - MAILER_AUTH_USER=${MAILER_AUTH_USER}
  34.       - MAILER_AUTH_PASSWORD=${MAILER_AUTH_PASSWORD}
  35.       - MAILER_NOREPLY_NAME=${MAILER_NOREPLY_NAME}
  36.       - MAILER_NOREPLY_EMAIL=${MAILER_NOREPLY_EMAIL}
  37.     networks:
  38.      - joplin_network
  39.       - shared_network
  40.  
  41. networks:
  42.   joplin_network:
  43.     name: joplin_network
  44.   # network for exposing via caddy
  45.   shared_network:
  46.     external: true
  47.  
  48.  
  49. # example .env
  50. # POSTGRES_PASSWORD=<postgres_password>
  51. # POSTGRES_DATABASE=joplin
  52. # POSTGRES_USER=postgres
  53. # POSTGRES_PORT=5432
  54. # APP_BASE_URL="<https://joplin.yourdomain.com>"
  55. # # Optional: Joplin Email Configuration
  56. # MAILER_HOST=
  57. # MAILER_PORT=
  58. # MAILER_AUTH_USER=
  59. # MAILER_AUTH_PASSWORD=
  60. # MAILER_NOREPLY_NAME=
  61. # MAILER_NOREPLY_EMAIL=
Advertisement
Add Comment
Please, Sign In to add comment