Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- joplin-db:
- image: postgres:16
- container_name: joplin-db
- volumes:
- - ./data/postgres:/var/lib/postgresql/data
- restart: unless-stopped
- environment:
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- - POSTGRES_USER=${POSTGRES_USER}
- - POSTGRES_DB=${POSTGRES_DATABASE}
- networks:
- - joplin_network
- joplin-app:
- image: joplin/server:latest
- container_name: joplin-app
- depends_on:
- - joplin-db
- restart: unless-stopped
- environment:
- - APP_PORT=22300
- - APP_BASE_URL=${APP_BASE_URL}
- - DB_CLIENT=pg
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- - POSTGRES_DATABASE=${POSTGRES_DATABASE}
- - POSTGRES_USER=${POSTGRES_USER}
- - POSTGRES_PORT=${POSTGRES_PORT}
- - POSTGRES_HOST=joplin-db
- - MAILER_ENABLED=true
- - MAILER_SECURITY=starttls
- - MAILER_HOST=${MAILER_HOST}
- - MAILER_PORT=${MAILER_PORT}
- - MAILER_AUTH_USER=${MAILER_AUTH_USER}
- - MAILER_AUTH_PASSWORD=${MAILER_AUTH_PASSWORD}
- - MAILER_NOREPLY_NAME=${MAILER_NOREPLY_NAME}
- - MAILER_NOREPLY_EMAIL=${MAILER_NOREPLY_EMAIL}
- networks:
- - joplin_network
- - shared_network
- networks:
- joplin_network:
- name: joplin_network
- # network for exposing via caddy
- shared_network:
- external: true
- # example .env
- # POSTGRES_PASSWORD=<postgres_password>
- # POSTGRES_DATABASE=joplin
- # POSTGRES_USER=postgres
- # POSTGRES_PORT=5432
- # APP_BASE_URL="<https://joplin.yourdomain.com>"
- # # Optional: Joplin Email Configuration
- # MAILER_HOST=
- # MAILER_PORT=
- # MAILER_AUTH_USER=
- # MAILER_AUTH_PASSWORD=
- # MAILER_NOREPLY_NAME=
- # MAILER_NOREPLY_EMAIL=
Advertisement
Add Comment
Please, Sign In to add comment