mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
feat(docker): add plugin volume mapping to docker-compose files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user