From 14f8da844442ce5559b0bcaa2f3e316fb4faead4 Mon Sep 17 00:00:00 2001 From: wzj <244142824@qq.com> Date: Tue, 24 Jun 2025 10:20:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0docker=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 0 docker-compose.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7c13910 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.8' + +services: + squid-ui: + build: . + container_name: squid-ui + ports: + - "51823:8080" + environment: + - SQUID_PASSWORD=Sqd123 + volumes: + - ./config/squid_passwd:/app/config/squid_passwd:rw + - ./templates:/app/templates + restart: always + + squid: + image: ckazi/squid + container_name: squid + ports: + - "51822:3128" + volumes: + - ./config/squid.conf:/etc/squid/squid.conf:ro + - ./config/squid_passwd:/etc/squid/squid_passwd:ro + depends_on: + - squid-ui + restart: always \ No newline at end of file