2024-03-02 21:36:05 +00:00
|
|
|
{# code: language=ansible-jinja #}
|
|
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
|
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: joplin/server:{{ apps_vars.joplin.version }}
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
APP_PORT: {{ apps_vars.joplin.port }}
|
|
|
|
APP_BASE_URL: https://{{ apps_vars.joplin.domain }}
|
|
|
|
DB_CLIENT: pg
|
|
|
|
POSTGRES_HOST: {{ db_host }}
|
|
|
|
POSTGRES_PORT: {{ db_port }}
|
|
|
|
POSTGRES_DATABASE: {{ databases.joplin.db }}
|
|
|
|
POSTGRES_USER: {{ databases.joplin.user }}
|
|
|
|
POSTGRES_PASSWORD: {{ databases.joplin.password }}
|
2024-03-02 22:25:45 +00:00
|
|
|
MAILER_ENABLED: 1
|
|
|
|
MAILER_HOST: postfix
|
|
|
|
MAILER_PORT: 587
|
|
|
|
MAILER_SECURE: 0
|
|
|
|
MAILER_NOREPLY_NAME: Joplin Server ({{ apps_vars.joplin.domain }})
|
|
|
|
MAILER_NOREPLY_EMAIL: noreply@{{ apps_vars.joplin.domain }}
|
2024-03-02 21:36:05 +00:00
|
|
|
STORAGE_DRIVER: Type=Filesystem; Path=/storage
|
|
|
|
networks:
|
|
|
|
{{ apps_shared_docker_network }}:
|
|
|
|
aliases:
|
|
|
|
- joplin
|
2024-03-02 22:25:45 +00:00
|
|
|
{% if 'postfix' in apps_include %}
|
|
|
|
{{ apps_postfix_docker_network }}:
|
|
|
|
{% endif %}
|
2024-03-02 21:36:05 +00:00
|
|
|
volumes:
|
|
|
|
- "./data/storage:/storage:rw"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
{{ apps_shared_docker_network }}:
|
|
|
|
external: true
|
2024-03-02 22:25:45 +00:00
|
|
|
{% if 'postfix' in apps_include %}
|
|
|
|
{{ apps_postfix_docker_network }}:
|
|
|
|
external: true
|
|
|
|
{% endif %}
|