diff --git a/apps/gh-proxy/2024-02-19/.env.sample b/apps/gh-proxy/4.1.4/.env.sample similarity index 100% rename from apps/gh-proxy/2024-02-19/.env.sample rename to apps/gh-proxy/4.1.4/.env.sample diff --git a/apps/gh-proxy/2024-02-19/data.yml b/apps/gh-proxy/4.1.4/data.yml similarity index 100% rename from apps/gh-proxy/2024-02-19/data.yml rename to apps/gh-proxy/4.1.4/data.yml diff --git a/apps/gh-proxy/4.1.4/docker-compose.yml b/apps/gh-proxy/4.1.4/docker-compose.yml new file mode 100644 index 000000000..e1df0f670 --- /dev/null +++ b/apps/gh-proxy/4.1.4/docker-compose.yml @@ -0,0 +1,18 @@ +services: + gh-proxy: + image: wjqserver/ghproxy:4.1.4 + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:8080" + volumes: + - ${DATA_PATH}/log:/data/ghproxy/log + - ${DATA_PATH}/config:/data/ghproxy/config + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/gh-proxy/latest/.env.sample b/apps/gh-proxy/latest/.env.sample new file mode 100644 index 000000000..426854da1 --- /dev/null +++ b/apps/gh-proxy/latest/.env.sample @@ -0,0 +1,3 @@ +CONTAINER_NAME="gh-proxy" +PANEL_APP_PORT_HTTP="40170" +DATA_PATH="./data" diff --git a/apps/gh-proxy/latest/data.yml b/apps/gh-proxy/latest/data.yml new file mode 100644 index 000000000..f93ba9d5a --- /dev/null +++ b/apps/gh-proxy/latest/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: 40170 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "./data" + disabled: true + envKey: DATA_PATH + labelEn: Data Path + labelZh: 数据路径 + required: true + type: text diff --git a/apps/gh-proxy/2024-02-19/docker-compose.yml b/apps/gh-proxy/latest/docker-compose.yml similarity index 53% rename from apps/gh-proxy/2024-02-19/docker-compose.yml rename to apps/gh-proxy/latest/docker-compose.yml index 5003f67fc..25f143303 100644 --- a/apps/gh-proxy/2024-02-19/docker-compose.yml +++ b/apps/gh-proxy/latest/docker-compose.yml @@ -6,11 +6,13 @@ services: networks: - 1panel-network ports: - - "${PANEL_APP_PORT_HTTP}:80" - image: stilleshan/gh-proxy:2024-02-19 - labels: + - "${PANEL_APP_PORT_HTTP}:8080" + volumes: + - ${DATA_PATH}/log:/data/ghproxy/log + - ${DATA_PATH}/config:/data/ghproxy/config + labels: createdBy: "Apps" -networks: +networks: 1panel-network: - external: true + external: true \ No newline at end of file