mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 04:20:50 +08:00
This change introduces environment variable interpolation for volume paths, allowing users to customize where configuration, authentication, and log data are stored. Why: Makes the project easier to deploy on various hosting environments that require decoupled data management without needing to modify the core docker-compose.yml.. Key points: Defaults to existing paths (./config.yaml, ./auths, ./logs) to ensure zero breaking changes for current users. Follows the existing naming convention used in the project. Enhances portability for CI/CD and cloud-native deployments.
29 lines
763 B
YAML
29 lines
763 B
YAML
services:
|
|
cli-proxy-api:
|
|
image: ${CLI_PROXY_IMAGE:-eceasy/cli-proxy-api:latest}
|
|
pull_policy: always
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
VERSION: ${VERSION:-dev}
|
|
COMMIT: ${COMMIT:-none}
|
|
BUILD_DATE: ${BUILD_DATE:-unknown}
|
|
container_name: cli-proxy-api
|
|
# env_file:
|
|
# - .env
|
|
environment:
|
|
DEPLOY: ${DEPLOY:-}
|
|
ports:
|
|
- "8317:8317"
|
|
- "8085:8085"
|
|
- "1455:1455"
|
|
- "54545:54545"
|
|
- "51121:51121"
|
|
- "11451:11451"
|
|
volumes:
|
|
- ${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
|
|
restart: unless-stopped
|