fix: 优化docker compose
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gpt-load:
|
gpt-load:
|
||||||
image: ghcr.io/tbphp/gpt-load:latest
|
image: ghcr.io/tbphp/gpt-load:latest
|
||||||
@@ -9,10 +7,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# 挂载密钥文件(只读)
|
# 挂载密钥文件(只读)
|
||||||
- ./keys.txt:/app/keys.txt:ro
|
- ./keys.txt:/app/keys.txt:ro
|
||||||
# 挂载配置文件(只读)
|
|
||||||
- ./.env:/app/.env:ro
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
tty: true
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
# 健康检查
|
# 健康检查
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -21,6 +18,3 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
|
Reference in New Issue
Block a user