Commit ead7b756 authored by nono's avatar nono 💻
Browse files

Ajout des fichiers de configurations à générer

parent 598f5be3
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
# - "templates/web.ssl.template.yml"
# - "templates/web.letsencrypt.ssl.template.yml"
expose:
- "8000:80" # http
- "443:443" # https
params:
db_default_text_search_config: "pg_catalog.english"
env:
LANG: en_US.UTF-8
## How many concurrent web requests are supported? Depends on memory and CPU cores.
## will be set automatically by bootstrap based on detected CPUs, or you can override
UNICORN_WORKERS: 2
## The domain name this Discourse instance will respond to
DISCOURSE_HOSTNAME: {{ discourse_domain_name }}
## Uncomment if you want the container to be started with the same
## hostname (-h option) as specified above (default "$hostname-$config")
DOCKER_USE_HOSTNAME: true
## List of comma delimited emails that will be made admin and developer
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: {{ discourse_admin_email_account }}
## The SMTP mail server used to validate new accounts and send notifications
DISCOURSE_SMTP_ADDRESS: {{ discourse_smtp_address }}
DISCOURSE_SMTP_PORT: {{ discourse_smtp_port }}
DISCOURSE_SMTP_USER_NAME: {{ discourse_smtp_username }}
DISCOURSE_SMTP_AUTHENTICATION: {{ discourse_smtp_auth }}
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: {{ discourse_smtp_openssl_verify }}
DISCOURSE_SMTP_PASSWORD: {{ discourse_smtp_password }}
DISCOURSE_SMTP_ENABLE_START_TLS: {{ discourse_smtp_starttls }}
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
LETSENCRYPT_ACCOUNT_EMAIL: {{ discourse_admin_email_account }}
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /srv/forum/{{ discourse_domain_name }}/shared/standalone
guest: {{ discourse_storage_location }}
- volume:
host: /srv/forum/{{ discourse_domain_name }}/shared/standalone/log/var-log
guest: {{ discourse_log_location }}
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
{% for plugin in discourse_forum_plugins %}
- git clone {{ plugin.url }} {{ plugin.name }} ; cd {{ plugin.name }} ; git checkout {{ plugin.hash }}
{% endfor %}
- exec:
cd: $home
cmd:
- git fetch --depth=1 origin tag {{ discourse_discourse_version }} --no-tags
- git checkout {{ discourse_discourse_version }}
## Any custom commands to run after building
run:
- exec: echo "Beginning of custom commands"
- exec: echo "End of custom commands"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment