Joplin/docker-compose.yaml
Adam Outler 8e0751f4fc
Some checks failed
Updates/Joplin/pipeline/head There was a failure building this commit
Update docker-compose.yaml
2025-04-05 08:26:01 +00:00

89 lines
2.2 KiB
YAML

services:
joplin-server:
image: joplin/server:latest
container_name: joplin-server
restart: always
environment:
#Networking
TZ: America/New York
NTP_SERVER: 192.168.1.1:123
APP_PORT: 8030
APP_BASE_URL: https://server.joplin.adamoutler.com
# Database
DB_CLIENT: pg # or sqlite3
# DB_FILE: /var/lib/joplin/database.sqlite # for local sqlite db
# Postgres
POSTGRES_HOST: postgres
POSTGRES_DATABASE: joplindb
POSTGRES_USER: joplin
POSTGRES_PASSWORD: ${PG_PASS}
POSTGRES_PORT: 5432
#LDAP
LDAP_1_ENABLED: true
LDAP_1_HOST: ldap://192.168.1.100:389
LDAP_1_MAIL_ATTRIBUTE: mail
LDAP_1_FULLNAME_ATTRIBUTE: sAMAccountName
LDAP_1_BASE_DN: DC=activedirectory,DC=adamoutler,DC=com
LDAP_1_BIND_DN: ${BINDUSER} # used for user search - leave empty if ldap server allows anonymous bind
LDAP_1_BIND_PW: ${BINDPASS} # used for user search - leave empty if ldap server allows anonymous bind
LDAP_1_TLS_CA_FILE: '' # used for self-signed certificate with ldaps - leave empty if using ldap or server uses CA-issued certificate
#Admin
SUPPORT_EMAIL: adamoutler@gmail.com
SUPPORT_NAME: Adam Outler
BUSINESS_EMAIL: Adam Outler
#email
MAILER_ENABLED: 1
MAILER_HOST: smtp.gmail.com
MAILER_PORT: 587
MAILER_SECURITY: starttls
MAILER_AUTH_USER: ${GMAIL_EMAIL}
MAILER_AUTH_PASSWORD: ${GMAIL_APP_PASSWORD}
MAILER_NOREPLY_NAME: JoplinServer
MAILER_NOREPLY_EMAIL: ${GMAIL_EMAIL}
ports:
- "8030:8030"
volumes:
- data:/var/lib/joplin
networks:
- joplin-net
postgres:
container_name: postgres
image: postgres:16
restart: always
environment:
POSTGRES_DB: joplindb
POSTGRES_USER: joplin
POSTGRES_PASSWORD: ${PG_PASS}
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
networks:
- joplin-net
joplin-webapp:
container_name: joplin-webapp
image: ghcr.io/adamoutler/web-app:latest
ports:
- "7880:80"
networks:
- joplin-net
volumes:
data:
database:
networks:
joplin-net:
name: joplin-net