From a0aa20e48ce0955b41d41793eadaa50da59ef9bd Mon Sep 17 00:00:00 2001 From: XOF Date: Tue, 30 Dec 2025 02:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..933e147 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + chnroute-rsc: + build: . + container_name: chnroute-rsc + restart: unless-stopped + ports: + - "8080:8080" + environment: + - TZ=Asia/Shanghai + healthcheck: + test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: "3"