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
88542753
authored
Mar 02, 2024
by
Ehco1996
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert compose
parent
6d12d19d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
docker-compose.yml
+3
-2
No files found.
docker-compose.yml
View file @
88542753
...
@@ -2,7 +2,8 @@ version: '3.4'
...
@@ -2,7 +2,8 @@ version: '3.4'
services
:
services
:
new-api
:
new-api
:
build
:
.
image
:
calciumion/new-api:latest
# build: .
container_name
:
new-api
container_name
:
new-api
restart
:
always
restart
:
always
command
:
--log-dir /app/logs
command
:
--log-dir /app/logs
...
@@ -12,7 +13,7 @@ services:
...
@@ -12,7 +13,7 @@ services:
-
./data:/data
-
./data:/data
-
./logs:/app/logs
-
./logs:/app/logs
environment
:
environment
:
#
- SQL_DSN=root:123456@tcp(host.docker.internal:3306)/new-api # 修改此行,或注释掉以使用 SQLite 作为数据库
-
SQL_DSN=root:123456@tcp(host.docker.internal:3306)/new-api
# 修改此行,或注释掉以使用 SQLite 作为数据库
-
REDIS_CONN_STRING=redis://redis
-
REDIS_CONN_STRING=redis://redis
-
SESSION_SECRET=random_string
# 修改为随机字符串
-
SESSION_SECRET=random_string
# 修改为随机字符串
-
TZ=Asia/Shanghai
-
TZ=Asia/Shanghai
...
...
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