From 9b627a93ac37a75b021471b38ca25b5c39fdef10 Mon Sep 17 00:00:00 2001 From: hkfires <10558748+hkfires@users.noreply.github.com> Date: Thu, 4 Sep 2025 09:23:35 +0800 Subject: [PATCH] Add Docker Compose --- .dockerignore | 25 +++++++++++++++++++++++++ .gitignore | 6 ++++-- auths/.gitkeep | 0 docker-compose.yml | 14 ++++++++++++++ 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 .dockerignore create mode 100644 auths/.gitkeep create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..1935a138 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +# Git and GitHub folders +.git +.github + +# Docker and CI/CD related files +docker-compose.yml +.dockerignore +.gitignore +.goreleaser.yml +Dockerfile + +# Documentation and license +README.md +README_CN.md +MANAGEMENT_API.md +MANAGEMENT_API_CN.md +LICENSE + +# Example configuration +config.example.yaml + +# Runtime data folders (should be mounted as volumes) +auths +logs +config.yaml diff --git a/.gitignore b/.gitignore index 89b83563..d6906ed5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ config.yaml -docs/ -logs/ \ No newline at end of file +docs/* +logs/* +auths/* +!auths/.gitkeep diff --git a/auths/.gitkeep b/auths/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..2a18d77f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +services: + cli-proxy-api: + build: + context: . + dockerfile: Dockerfile + image: cli-proxy-api:latest + container_name: cli-proxy-api + ports: + - "8317:8317" + volumes: + - ./config.yaml:/CLIProxyAPI/config.yaml + - ./auths:/root/.cli-proxy-api + - ./logs:/CLIProxyAPI/logs + restart: unless-stopped \ No newline at end of file