feat(docker): add plugin volume mapping to docker-compose files

This commit is contained in:
hkfires
2026-07-21 09:18:13 +08:00
committed by Luis Pater
parent a007ad69f2
commit 01f387f447
2 changed files with 5 additions and 3 deletions

View File

@@ -15,8 +15,9 @@ services:
ports:
- "8317:8317"
volumes:
- ./home:/root/.cli-proxy-api
- ./logs:/CLIProxyAPI/logs
- ${CLI_PROXY_HOME_PATH:-./home}:/root/.cli-proxy-api
- ${CLI_PROXY_LOG_PATH:-./logs}:/CLIProxyAPI/logs
- ${CLI_PROXY_PLUGIN_PATH:-./plugins}:/CLIProxyAPI/plugins
command: >
sh -eu -c '
if [ -z "$$HOME_JWT" ]; then
@@ -26,4 +27,4 @@ services:
exec ./CLIProxyAPI -home-jwt "$$HOME_JWT"
'
restart: unless-stopped
restart: unless-stopped

View File

@@ -25,4 +25,5 @@ services:
- ${CLI_PROXY_CONFIG_PATH:-./config.yaml}:/CLIProxyAPI/config.yaml
- ${CLI_PROXY_AUTH_PATH:-./auths}:/root/.cli-proxy-api
- ${CLI_PROXY_LOG_PATH:-./logs}:/CLIProxyAPI/logs
- ${CLI_PROXY_PLUGIN_PATH:-./plugins}:/CLIProxyAPI/plugins
restart: unless-stopped