我朋友帮我折腾半天之后,新的(能跑的) Docker compose 文件如下:
version: "3"
services:
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijsrocks
POSTGRES_USER: wikijs
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
networks:
- wiki-network
extra_hosts:
- "domain.com:host-gateway"
ports:
- "3002:3000"
wiki:
image: ghcr.io/requarks/wiki:2
depends_on:
- db
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijsrocks
DB_NAME: wiki
restart: unless-stopped
network_mode: "service:db"
networks:
- wiki-network
volumes:
db-data:
networks:
wiki-network:
driver: bridge
能跑起来,但是所有的文本变成了本地化字符串,而且无法通过 OAuth 使用 DSM 帐户登录,提示密码和/或邮箱地址错误。
想问问各位对这个问题有没有什么头猪……
wiki, Networks, db-data, compose