Fix all network bridge
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user