Docker 버전 20.10.7, 빌드 f0df350
다음은 제 app.yml 파일입니다.
## 이것은 올인원, 스탠드얼론 Discourse Docker 컨테이너 템플릿입니다.
##
## 이 파일을 수정한 후에는 반드시 다시 빌드해야 합니다.
## /var/discourse/launcher rebuild app
##
## 편집 시 *매우* 주의하세요!
## YAML 파일은 공백이나 정렬 오류에 *매우* 민감합니다!
## 필요할 경우 http://www.yamllint.com/ 에서 이 파일을 검증할 수 있습니다.
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
- "templates/web.socketed.template.yml"
## Lets Encrypt(https)를 추가하려면 아래 두 줄의 주석을 해제하세요.
## - "templates/web.ssl.template.yml"
## - "templates/web.letsencrypt.ssl.template.yml"
## 이 컨테이너가 노출해야 하는 TCP/IP 포트는 무엇인가요?
## Apache나 nginx와 같은 다른 웹 서버와 포트를 공유하려면
## https://meta.discourse.org/t/17247 를 참조하세요.
## expose:
## - "8080:80" # http
## - "8443:443" # https
params:
db_default_text_search_config: "pg_catalog.english"
## db_shared_buffers는 총 메모리의 25%로 제한하세요.
## bootstrap이 감지된 RAM에 따라 자동으로 설정되거나, 직접 오버라이드할 수 있습니다.
db_shared_buffers: "256MB"
## 정렬 성능을 향상시킬 수 있지만, 연결당 메모리 사용량이 증가합니다.
#db_work_mem: "40MB"
## 이 컨테이너가 사용할 Git 리비전은 무엇인가요? (기본값: tests-passed)
#version: tests-passed
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
# DISCOURSE_DEFAULT_LOCALE: en
## 동시 웹 요청은 얼마나 지원되나요? 메모리와 CPU 코어 수에 따라 다릅니다.
## bootstrap이 감지된 CPU에 따라 자동으로 설정되거나, 직접 오버라이드할 수 있습니다.
UNICORN_WORKERS: 4
## TODO: 이 Discourse 인스턴스가 응답할 도메인 이름
## 필수 항목입니다. Discourse는 IP 주소만으로는 작동하지 않습니다.
DISCOURSE_HOSTNAME: wordsmiths.digitalwind.net
## 컨테이너가 위에서 지정한 도메인 이름(-h 옵션)과 동일한 이름으로
## 시작되도록 하려면 주석을 해제하세요. (기본값 "$hostname-$config")
#DOCKER_USE_HOSTNAME: true
## TODO: 초기 가입 시 관리자 및 개발자로 설정될 쉼표로 구분된 이메일 목록
## 예시 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'xxx@dev.null'
## TODO: 새 계정 검증 및 알림 전송에 사용되는 SMTP 메일 서버
# SMTP 주소, 사용자 이름, 비밀번호는 필수입니다.
# 경고: SMTP 비밀번호의 '#' 문자는 문제를 일으킬 수 있습니다!
DISCOURSE_SMTP_ADDRESS: dev.null
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: xxx@dev.null
DISCOURSE_SMTP_PASSWORD: "not-here"
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: nope
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (선택 사항, 기본값 true)
DISCOURSE_SMTP_DOMAIN: dev.null
DISCOURSE_NOTIFICATION_EMAIL: xxx@dev.null
## Lets Encrypt 템플릿을 추가했다면 무료 SSL 인증서를 얻으려면 아래 주석을 해제하세요.
LETSENCRYPT_ACCOUNT_EMAIL: xxx@dev.null
## 이 Discourse 인스턴스의 http 또는 https CDN 주소 (pull로 설정됨)
## https://meta.discourse.org/t/14857 에서 자세한 내용을 확인하세요.
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
## IP 주소 조회를 위한 maxmind 지리 위치 IP 주소 키
## https://meta.discourse.org/t/-/137387/23 에서 자세한 내용을 확인하세요.
#DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
## Docker 컨테이너는 상태가 없으며(stateless), 모든 데이터는 /shared에 저장됩니다.
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
## 플러그인은 여기에 배치합니다.
## https://meta.discourse.org/t/19157 에서 자세한 내용을 확인하세요.
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-data-explorer.git
- git clone https://github.com/discourse/discourse-voting.git
- git clone https://github.com/discourse/wp-discourse.git
- git clone https://github.com/discourse/discourse-spoiler-alert.git
- git clone https://github.com/discourse/discourse-bbcode-color.git
- git clone https://github.com/discourse/discourse-calendar
- git clone https://github.com/discourse/discourse-checklist
- git clone https://github.com/discourse/discourse-reactions
- git clone https://github.com/discourse/discourse-policy
## 빌드 후 실행할 모든 사용자 지정 명령
run:
- exec: echo "Beginning of custom commands"
## 첫 번째 가입 시 'From' 이메일 주소를 설정하려면 주석을 해제하고 변경하세요:
## 첫 번째 가입 이메일을 받은 후, 해당 줄의 주석을 다시 활성화하세요. 한 번만 실행하면 됩니다.
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: echo "End of custom commands"