Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker 部署的,是否可以修改,添加,禁用某些源? #44

Open
marco-qu opened this issue Dec 10, 2024 · 2 comments
Open

Comments

@marco-qu
Copy link

使用docker 部署的,是否可以修改,添加,禁用某些源?
docker中没找到source.ts文件

@liuyaboixixi
Copy link

你好,docker 怎么部署的,能给说一下部署流程么,需要自己设置数据库么

@dave2nian
Copy link

dave2nian commented Jan 5, 2025

``#44 (comment)

改了一下 docker-compose.yml : 以我修改后部署的为例,让它在 9015 端口运行。
version: '3'

services:
newsnow:
image: ghcr.io/ourongxing/newsnow:latest
container_name: newsnow
restart: always
ports:
- '9015:9015' # 内外端口都使用 9015
environment:
- PORT=9015 # 添加这一行来覆盖默认的 4444 端口
- G_CLIENT_ID=
- G_CLIENT_SECRET=
- JWT_SECRET=
- INIT_TABLE=true
- ENABLE_CACHE=true

#发现直接复制上面的内容, 格式是不对齐的。 建议你在已有文件上修改。 不然会出 mapping 类的报错

+++++++++++++++++++++
在 docker-compose.yml 下运行:
docker compose up -d
参考输出: [/share/Multimedia/2024-MyProgramFiles/30.GitHub_Apps] # cd 1.newsnow-0.0.20/ [/share/Multimedia/2024-MyProgramFiles/30.GitHub_Apps/1.newsnow-0.0.20] # ls docker-compose.yml example.wrangler.toml package.json pwa.config.ts scripts/ test/ tsconfig.json vitest.config.ts Dockerfile index.html patches/ README.md server/ tools/ tsconfig.node.json eslint.config.mjs LICENSE pnpm-lock.yaml README.zh-CN.md shared/ tsconfig.app.json uno.config.ts example.env.server nitro.config.ts public/ screenshots/ src/ tsconfig.base.json vite.config.ts [/share/Multimedia/2024-MyProgramFiles/30.GitHub_Apps/1.newsnow-0.0.20] # docker compose up -d WARN[0000] /share/Multimedia/2024-MyProgramFiles/30.GitHub_Apps/1.newsnow-0.0.20/docker-compose.yml: the attribute versionis obsolete, it will be ignored, please remove it to avoid potential confusion [+] Running 7/7 ✔ newsnow Pulled 17.3s ✔ 4abcf2066143 Pull complete 1.8s ✔ 3bce96456554 Pull complete 12.9s ✔ 2bde47b9f7c3 Pull complete 13.6s ✔ db3e2f2b6054 Pull complete 14.0s ✔ 8d01db979800 Pull complete 14.4s ✔ 79f1eeeda83f Pull complete 15.3s [+] Running 2/2 ✔ Network 1newsnow-0020_default Created 3.6s ✔ Container newsnow Started 4.7s [/share/Multimedia/2024-MyProgramFiles/30.GitHub_Apps/1.newsnow-0.0.20] #

就可以在浏览器,打开:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants