Open chhsiao1981 opened 3 years ago
我覺得用一個 script 完成相關設定蠻好的,不過在 go-openbbsmiddleware 相關的 files,感覺可以把 template, ini 放在一起,當作是 go-openbbsmiddleware 所要的檔案 . ├── docker-compose.yaml ├── docker_compose.env ├── go-openbbsmiddleware │ ├── attemptregister.template │ ├── emailtoken.template │ ├── idemailtoken.template │ └── production.ini ├── go-pttbbs ├── mongo ├── postfix │ ├── main.cf │ └── master.cf ├── scripts │ └── docker_initbbs.sh └── static
另外我認為應該要把 docker-compose 獨立出一個 repository 出來,這樣子比較不會跟既有(go-openbbsmiddleware)的 folder 搞混
@tingyuchang
(那就 README.md 裡直接 refer 你的 repo 好了 XD)
Is your feature request related to a problem? Please describe.
https://github.com/Ptt-official-app/go-openbbsmiddleware#docker-compose
希望可以將這個 session 變成 1 個 script.
./scripts/docker_install.sh [MIDDLEWARE_HOME]
其中 [MIDDLEWARE_HOME] 是自訂的某個 physical directory.
這個 script 會在 [MIDDLEWARE_HOME] 裡完成所有基本設定. [MIDDLEWARE_HOME]/etc [MIDDLEWARE_HOME]/etc/production.ini [MIDDLEWARE_HOME]/etc/postfix [MIDDLEWARE_HOME]/mongo [MIDDLEWARE_HOME]/static
docker_compose.env
Describe the solution you'd like
Describe alternatives you've considered
Additional context