【发布时间】:2020-11-15 13:36:00
【问题描述】:
我在我的 vps 中使用 ghost cms 的 official docker compose file 创建了一个 ghost 实例
我将其修改为使用 mailgun SMTP 帐户,如下所示
version: '3.1'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_ghost
- MARIADB_DATABASE=bitnami_ghost
volumes:
- 'mariadb_data:/bitnami'
ghost:
image: 'ghost:3-alpine'
environment:
MARIADB_HOST: mariadb
MARIADB_PORT_NUMBER: 3306
GHOST_DATABASE_USER: bn_ghost
GHOST_DATABASE_NAME: bitnami_ghost
GHOST_HOST: localhost
mail__transport: SMTP
mail__options__service: Mailgun
mail__auth__user: ${MY_MAIL_USER}
mail__auth__pass: ${MY_MAIL_PASS}
mail__from: ${MY_FROM_ADDRESS}
ports:
- '80:2368'
volumes:
- 'ghost_data:/bitnami'
depends_on:
- mariadb
volumes:
mariadb_data:
driver: local
ghost_data:
driver: local
但是当我尝试邀请作者访问该网站时 它给了我以下错误
Failed to send 1 invitation: dulara@thinksmart.lk. Please check your email configuration, see https://ghost.org/docs/concepts/config/#mail for instructions
我确定我的 SMTP 凭据是正确的。
我登录了 ghost 容器 bash shell 并在那里检查了它的文件。 它的邮件部分是空的
我仍然找不到我的错误。我不确定变量名。但我是从官方文档中获取的。
【问题讨论】:
标签: docker ghost-blog