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