你好 @tophee
你能否就使用 NPM 和 SQLite 给出你的建议?因为与 mariadb 的问题相比,它更容易且更值得信赖。
我已经设置好了 NPM 和 SQLite,并且一切正常,包括 nginx 虚拟主机、ssl 等。但是,我想确保如何将 discourse 的数据库与 NPM 连接起来?因为我在使用 discourse 网站设置 NPM 时遇到了 502 错误。
我的 docker-compose
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: always
network_mode: bridge # -- 此网络已添加,以便 NPM 与 discourse 位于同一网络中,现在它们可以互相看到。
ports:
# 公共 HTTP 端口:
- '80:80'
# 公共 HTTPS 端口:
- '443:443'
# 管理员 Web 端口:
- '81:81'
environment:
DB_SQLITE_FILE: "/data/database.sqlite"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt