Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2d584021
authored
Jan 09, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README.md
parent
b428c63d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
README.md
+8
-0
No files found.
README.md
View file @
2d584021
...
@@ -47,6 +47,14 @@ docker run --name new-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -
...
@@ -47,6 +47,14 @@ docker run --name new-api -d --restart always -p 3000:3000 -e TZ=Asia/Shanghai -
# 例如:
# 例如:
docker run
--name
new-api
-d
--restart
always
-p
3000:3000
-e
SQL_DSN
=
"root:123456@tcp(localhost:3306)/oneapi"
-e
TZ
=
Asia/Shanghai
-v
/home/ubuntu/data/new-api:/data calciumion/new-api:latest
docker run
--name
new-api
-d
--restart
always
-p
3000:3000
-e
SQL_DSN
=
"root:123456@tcp(localhost:3306)/oneapi"
-e
TZ
=
Asia/Shanghai
-v
/home/ubuntu/data/new-api:/data calciumion/new-api:latest
```
```
### 使用宝塔面板Docker功能部署
```
shell
# 使用 SQLite 的部署命令:
docker run
--name
new-api
-d
--restart
always
-p
3000:3000
-e
TZ
=
Asia/Shanghai
-v
/www/wwwroot/new-api:/data calciumion/new-api:latest
# 使用 MySQL 的部署命令,在上面的基础上添加 `-e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi"`,请自行修改数据库连接参数。
# 例如:
docker run
--name
new-api
-d
--restart
always
-p
3000:3000
-e
SQL_DSN
=
"root:123456@tcp(宝塔的服务器地址:宝塔数据库端口)/宝塔数据库名称"
-e
TZ
=
Asia/Shanghai
-v
/www/wwwroot/new-api:/data calciumion/new-api:latest
```
## 交流群
## 交流群
<img
src=
"https://github.com/Calcium-Ion/new-api/assets/61247483/de536a8a-0161-47a7-a0a2-66ef6de81266"
width=
"300"
>
<img
src=
"https://github.com/Calcium-Ion/new-api/assets/61247483/de536a8a-0161-47a7-a0a2-66ef6de81266"
width=
"300"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment