mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
revert compose
This commit is contained in:
parent
e5cea80103
commit
cb92d6fd5f
@ -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:
|
|||||||
- ./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
|
||||||
|
Loading…
Reference in New Issue
Block a user