43 lines
1.2 KiB
Django/Jinja
43 lines
1.2 KiB
Django/Jinja
{# 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 }}
|
|
MAILER_ENABLED: 1
|
|
MAILER_HOST: postfix
|
|
MAILER_PORT: 587
|
|
MAILER_SECURITY: 0
|
|
MAILER_NOREPLY_NAME: Joplin Server ({{ apps_vars.joplin.domain }})
|
|
MAILER_NOREPLY_EMAIL: noreply@{{ apps_vars.joplin.domain }}
|
|
STORAGE_DRIVER: Type=Filesystem; Path=/storage
|
|
networks:
|
|
{{ apps_shared_docker_network }}:
|
|
aliases:
|
|
- joplin
|
|
{% if 'postfix' in apps_include %}
|
|
{{ apps_postfix_docker_network }}:
|
|
{% endif %}
|
|
volumes:
|
|
- "./data/storage:/storage:rw"
|
|
|
|
networks:
|
|
{{ apps_shared_docker_network }}:
|
|
external: true
|
|
{% if 'postfix' in apps_include %}
|
|
{{ apps_postfix_docker_network }}:
|
|
external: true
|
|
{% endif %}
|