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 # DOCKER_CLIENT_TIMEOUT: 600
- name: recreate discourse - name: recreate discourse
command: command:
cmd: ./launcher rebuild app cmd: ./launcher rebuild discourse_application
chdir: "{{docker_compose_instance_directory}}" chdir: "{{docker_compose_instance_directory}}"

View File

@ -45,8 +45,8 @@
mode: '700' mode: '700'
state: directory 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: template:
src: app.yml.j2 src: discourse_application.yml.j2
dest: "{{docker_compose_instance_directory}}containers/app.yml" dest: "{{docker_compose_instance_directory}}containers/discourse_application.yml"
notify: recreate discourse notify: recreate discourse

View File

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