Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
30
backend/docker-compose.cluster.yml
Normal file
30
backend/docker-compose.cluster.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
services:
|
||||
cli-proxy-api:
|
||||
image: ${CLI_PROXY_IMAGE:-eceasy/cli-proxy-api:latest}
|
||||
pull_policy: always
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: backend/Dockerfile
|
||||
args:
|
||||
VERSION: ${VERSION:-dev}
|
||||
COMMIT: ${COMMIT:-none}
|
||||
BUILD_DATE: ${BUILD_DATE:-unknown}
|
||||
container_name: cli-proxy-api-cluster
|
||||
environment:
|
||||
HOME_JWT: ${HOME_JWT:-}
|
||||
ports:
|
||||
- "8317:8317"
|
||||
volumes:
|
||||
- ${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
|
||||
echo "HOME_JWT is required" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec ./CLIProxyAPI -home-jwt "$$HOME_JWT"
|
||||
'
|
||||
restart: unless-stopped
|
||||
Loading…
Reference in a new issue