Copy stacks from entrance server
This commit is contained in:
40
stack/ghost-forum.yml
Normal file
40
stack/ghost-forum.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
ghost:
|
||||
image: ghost:5-alpine
|
||||
container_name: ghost
|
||||
restart: always
|
||||
environment:
|
||||
url: ${GHOST_URL}
|
||||
database__client: mysql
|
||||
database__connection__host: db
|
||||
database__connection__user: root
|
||||
# 從 .env 檔案中讀取密碼
|
||||
database__connection__password: ${MYSQL_ROOT_PASSWORD}
|
||||
database__connection__database: ghost
|
||||
mail__transport: SMTP
|
||||
mail__options__service: Gmail
|
||||
mail__options__auth__user: ${MAIL_ADDRESS} # 你的郵箱@gmail.com
|
||||
mail__options__auth__pass: ${MAIL_PASSWORD} # 應用程式專用密碼
|
||||
# NODE_ENV: production
|
||||
TRUST_PROXY: 1 # ← 告訴 Ghost 代理存在,使用 X-Forwarded-Proto 判斷 HTTPS
|
||||
|
||||
volumes:
|
||||
- /mnt/data/External/ghost_forum_data/content:/var/lib/ghost/content
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: ghost_db
|
||||
restart: always
|
||||
environment:
|
||||
# 從 .env 檔案中讀取密碼
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: ghost
|
||||
volumes:
|
||||
- ghost_forum_db:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
ghost_forum_db:
|
||||
Reference in New Issue
Block a user