app.yml
## dies ist die All-in-One, Standalone Discourse Docker Container-Vorlage
##
## Nach Änderungen an dieser Datei MÜSSEN Sie neu erstellen
## /var/discourse/launcher rebuild app
##
## SEIEN SIE *SEHR* VORSICHTIG BEIM BEARBEITEN!
## YAML-DATEIEN SIND SUPER SUPER EMPFINDLICH GEGEN FEHLER BEI LEERZEICHEN ODER AUSRICHTUNG!
## Besuchen Sie http://www.yamllint.com/, um diese Datei bei Bedarf zu validieren.
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Kommentieren Sie diese beiden Zeilen aus, wenn Sie Lets Encrypt (https) hinzufügen möchten
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
- "templates/web.socketed.template.yml"
## Welche TCP/IP-Ports soll dieser Container bereitstellen?
## Wenn Sie möchten, dass Discourse einen Port mit einem anderen Webserver wie Apache oder nginx teilt,
## siehe https://meta.discourse.org/t/17247 für Details
expose:
# - "80:80" # http
# - "443:443" # https
links:
- link:
name: redis
alias: redis
- link:
name: data
alias: data
params:
db_default_text_search_config: "pg_catalog.english"
redis_io_threads: "4" # 1 deaktiviert es, n>1 verwendet zusätzliche Threads für IO-Schreibvorgänge
## Setzen Sie db_shared_buffers auf maximal 25% des Gesamtspeichers.
## wird automatisch vom Bootstrap basierend auf dem erkannten RAM gesetzt, oder Sie können überschreiben
db_shared_buffers: "4096MB"
## kann die Sortierleistung verbessern, erhöht aber den Speicherverbrauch pro Verbindung
#db_work_mem: "40MB"
## Welche Git-Revision soll dieser Container verwenden? (Standard: tests-passed)
version: tests-passed
env:
LANG: en_US.UTF-8
# DISCOURSE_MAXMIND_LICENSE_KEY: removed
# DISCOURSE_DEFAULT_LOCALE: en
## Wie viele gleichzeitige Webanfragen werden unterstützt? Hängt vom Speicher und den CPU-Kernen ab.
## wird automatisch vom Bootstrap basierend auf den erkannten CPUs gesetzt, oder Sie können überschreiben
UNICORN_WORKERS: 8
## TODO: Der Domainname, auf den diese Discourse-Instanz reagieren wird
## Erforderlich. Discourse funktioniert nicht mit einer reinen IP-Nummer.
DISCOURSE_HOSTNAME: removed
## Kommentieren Sie dies aus, wenn der Container mit demselben
## Hostnamen (-h Option) wie oben angegeben gestartet werden soll (Standard "$hostname-$config")
#DOCKER_USE_HOSTNAME: true
## TODO: Liste von per Komma getrennten E-Mails, die beim ersten Login zu Administratoren und Entwicklern gemacht werden
## Beispiel 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'removed'
## TODO: Der SMTP-Mailserver, der zum Überprüfen neuer Konten und zum Senden von Benachrichtigungen verwendet wird
# SMTP-ADRESSE, Benutzername und Passwort sind erforderlich
# WARNUNG: Das Zeichen '#' im SMTP-Passwort kann Probleme verursachen!
DISCOURSE_SMTP_ADDRESS: removed
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: removed
DISCOURSE_SMTP_PASSWORD: removed
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, Standard true)
DISCOURSE_REDIS_HOST: redis
## TODO: Konfigurieren Sie die Konnektivität zu den Datenbanken
#DISCOURSE_DB_SOCKET: ''
DISCOURSE_DB_USERNAME: discourse
DISCOURSE_DB_PASSWORD: discourse
DISCOURSE_DB_HOST: data
## Wenn Sie die Lets Encrypt-Vorlage hinzugefügt haben, kommentieren Sie unten aus, um ein kostenloses SSL-Zertifikat zu erhalten
LETSENCRYPT_ACCOUNT_EMAIL: removed
## Die HTTP- oder HTTPS-CDN-Adresse für diese Discourse-Instanz (konfiguriert zum Abrufen)
## siehe https://meta.discourse.org/t/14857 für Details
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
## Der Docker-Container ist zustandslos; alle Daten werden in /shared gespeichert
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
## Plugins gehen hier hin
## siehe https://meta.discourse.org/t/19157 für Details
hooks:
before_code:
- exec:
cmd:
- apt-get update
- apt-get install -y libsodium-dev
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-chat-integration.git
- git clone https://github.com/davidtaylorhq/discourse-whos-online.git
- git clone https://github.com/gdpelican/retort.git
#- git clone https://github.com/mozilla/discourse-expose-emails-in.git
#- git clone https://github.com/discourse/discourse-steam-login.git
#- git clone https://github.com/discourse/discourse-docs.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-patreon.git
#- git clone https://github.com/discourse/discourse-encrypt.git
#- git clone https://github.com/paviliondev/discourse-custom-wizard.git
#- git clone https://github.com/discourse/discourse-assign.git
#- git clone https://github.com/discourse/discourse-checklist.git
#- git clone https://github.com/cpradio/discourse-plugin-vb-emoticons.git
#- git clone https://github.com/paviliondev/discourse-locations.git
#- git clone https://github.com/discourse/discourse-bcc.git
#- git clone https://github.com/discourse/discourse-calendar.git
#- git clone https://github.com/paviliondev/discourse-layouts.git
#- git clone https://github.com/barreeeiroo/discourse-discord-sync.git
#- git clone https://github.com/discourse/discourse-subscriptions
#- git clone https://github.com/discourse/discourse-oauth2-basic
#- git clone https://github.com/discourse/discourse-github.git
#- git clone https://github.com/discourse/discourse-automation.git
#- git clone https://github.com/communiteq/discourse-rocketchat.git
#- git clone https://github.com/LibreTranslate/discourse-translator.git
## Alle benutzerdefinierten Befehle, die nach dem Erstellen ausgeführt werden sollen
run:
- exec: echo "Beginn der benutzerdefinierten Befehle"
## Wenn Sie die E-Mail-Adresse 'Von' für Ihre erste Registrierung festlegen möchten, kommentieren Sie sie aus und ändern Sie sie:
## Nachdem Sie die erste Registrierungs-E-Mail erhalten haben, kommentieren Sie die Zeile wieder aus. Sie muss nur einmal ausgeführt werden.
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: echo "Ende der benutzerdefinierten Befehle"