Fix all network bridge

This commit is contained in:
ChenKaiLiuG
2025-12-24 16:04:09 +08:00
parent a43a6bf51e
commit 2f01362e68
4 changed files with 53 additions and 5 deletions

View File

@@ -19,7 +19,9 @@ services:
mail__options__auth__pass: ${MAIL_PASSWORD} # 應用程式專用密碼
# NODE_ENV: production
TRUST_PROXY: 1 # ← 告訴 Ghost 代理存在,使用 X-Forwarded-Proto 判斷 HTTPS
networks:
- ghost_network
- webproxy
volumes:
- /mnt/data/External/ghost_forum_data/content:/var/lib/ghost/content
depends_on:
@@ -33,8 +35,16 @@ services:
# 從 .env 檔案中讀取密碼
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ghost
networks:
- ghost_network
volumes:
- ghost_forum_db:/var/lib/mysql
volumes:
ghost_forum_db:
networks:
ghost_network:
driver: bridge
webproxy:
external: true