2025-01-10 17:42:44 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
|
|
|
|
|
|
|
application:
|
2025-01-15 22:15:44 +01:00
|
|
|
image: friendica
|
2025-01-15 20:42:36 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2025-01-10 17:42:44 +01:00
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
healthcheck:
|
2025-01-16 19:26:21 +01:00
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD-SHELL",
|
|
|
|
"(echo 'Subject: testmessage from {{domain}}\n\nSUCCESSFULL' | msmtp -t {{test_email}} && curl -f http://127.0.0.1:80) || exit 1"
|
|
|
|
]
|
2025-01-10 17:42:44 +01:00
|
|
|
interval: 1m
|
|
|
|
timeout: 10s
|
2025-01-16 19:26:21 +01:00
|
|
|
retries: 3
|
2025-01-10 17:42:44 +01:00
|
|
|
environment:
|
2025-01-15 20:42:36 +01:00
|
|
|
FRIENDICA_URL: https://{{domain}}
|
|
|
|
HOSTNAME: {{domain}}
|
|
|
|
FRIENDICA_NO_VALIDATION: false
|
|
|
|
|
|
|
|
# Debugging
|
|
|
|
FRIENDICA_DEBUGGING: false
|
2025-01-15 22:15:44 +01:00
|
|
|
FRIENDICA_LOGLEVEL: 5
|
|
|
|
FRIENDICA_LOGGER: stream
|
|
|
|
FRIENDICA_LOGFILE: php://stdout
|
|
|
|
|
2025-01-15 20:42:36 +01:00
|
|
|
# Database Configuration
|
2025-01-16 19:26:21 +01:00
|
|
|
MYSQL_HOST: {{database_host}}:3306
|
2025-01-15 20:42:36 +01:00
|
|
|
MYSQL_DATABASE: {{database_name}}
|
2025-01-16 19:26:21 +01:00
|
|
|
MYSQL_USER: {{database_username}}
|
2025-01-15 20:42:36 +01:00
|
|
|
MYSQL_PASSWORD: {{database_password}}
|
2025-01-15 22:15:44 +01:00
|
|
|
|
2025-01-15 20:42:36 +01:00
|
|
|
# Email Configuration
|
2025-01-15 22:15:44 +01:00
|
|
|
SMTP: {{system_email_host}}
|
|
|
|
SMTP_DOMAIN: {{system_email_domain}}
|
|
|
|
SMTP_PORT: {{system_email_smtp_port}}
|
2025-01-15 20:42:36 +01:00
|
|
|
SMTP_AUTH_USER: {{system_email_username}}
|
|
|
|
SMTP_AUTH_PASS: {{system_email_password}}
|
2025-01-16 19:26:21 +01:00
|
|
|
SMTP_TLS: {{ 'on' if system_email_tls else 'off' }}
|
2025-01-16 16:36:15 +01:00
|
|
|
SMTP_STARTTLS: {{ 'on' if system_email_start_tls else 'off' }}
|
2025-01-16 19:26:21 +01:00
|
|
|
SMTP_FROM: {{system_email_local}}
|
2025-01-15 20:42:36 +01:00
|
|
|
|
|
|
|
# Administrator Credentials
|
|
|
|
FRIENDICA_ADMIN_MAIL: {{administrator_email}}
|
|
|
|
MAILNAME: {{administrator_email}}
|
2025-01-10 17:42:44 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
|
|
data:
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|