안녕하세요,
아래 예시와 같은 커스텀 Docker 네트워크 블록을 Discourse 설정 파일(container/app.yml)에 추가하는 방법을 알고 싶습니다.
./launch rebuild를 실행한 후 컨테이너가 실행될 때 "my-network"에 연결되도록 설정하고 싶습니다.
## 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
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
....
## Any custom commands to run after building
run:
- exec: echo "Beginning of custom commands"
## If you want to set the 'From' email address for your first registration, uncomment and change:
## After getting the first signup email, re-comment the line. It only needs to run once.
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: echo "End of custom commands"
networks:
my-network:
external: true
네트워크 블록:
networks:
my-network:
external: true