Optimized discourse

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-08 14:14:52 +01:00
parent 9cd9a5db94
commit 6cdeaba963
3 changed files with 7 additions and 7 deletions

View File

@ -8,5 +8,5 @@
# DOCKER_CLIENT_TIMEOUT: 600
- name: recreate discourse
command:
cmd: ./launcher rebuild app
cmd: ./launcher rebuild discourse_application
chdir: "{{docker_compose_instance_directory}}"

View File

@ -45,8 +45,8 @@
mode: '700'
state: directory
- name: "copy configuration {{docker_compose_instance_directory}}containers/app.yml"
- name: "copy configuration to {{docker_compose_instance_directory}}containers/discourse_application.yml"
template:
src: app.yml.j2
dest: "{{docker_compose_instance_directory}}containers/app.yml"
src: discourse_application.yml.j2
dest: "{{docker_compose_instance_directory}}containers/discourse_application.yml"
notify: recreate discourse

View File

@ -1,7 +1,7 @@
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
## /var/discourse/launcher rebuild discourse_application
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
@ -50,7 +50,7 @@ env:
## TODO: The domain name this Discourse instance will respond to
## Required. Discourse will not work with a bare IP number.
DISCOURSE_HOSTNAME: localhost
DISCOURSE_HOSTNAME: {{domain}}
## Uncomment if you want the container to be started with the same
## hostname (-h option) as specified above (default "$hostname-$config")
@ -85,7 +85,7 @@ env:
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /var/discourse/shared/standalone
host: discourse_application_data
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log