From fff572869e0eb0276178d467f22859ecf9c84232 Mon Sep 17 00:00:00 2001 From: Hugh Gao Date: Fri, 8 Nov 2024 22:52:19 +0800 Subject: [PATCH] chore: Update docker-compose.yml (#2553) --- README.md | 2 +- docker/docker-compose.yml | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 650444c08db..d273affa482 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ docker run -dit \ ```bash # curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose -mkdir qinglong +mkdir qinglong && cd $_ wget https://raw.githubusercontent.com/whyour/qinglong/master/docker/docker-compose.yml # 启动 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 351d898fbcb..2461a96692e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,15 +1,10 @@ -version: '2' services: web: - # alpine 基础镜像版本 - image: whyour/qinglong:latest - # debian-slim 基础镜像版本 - # image: whyour/qinglong:debian + image: whyour/qinglong:latest # 基于 Debian 的版本:whyour/qinglong:debian volumes: - ./data:/ql/data ports: - - "0.0.0.0:5700:5700" + - "5700:5700" environment: - # 部署路径非必须,以斜杠开头和结尾,比如 /test/ - QlBaseUrl: '/' + QlBaseUrl: '/' # 部署路径非必须,以斜杠开头和结尾,比如 /test/ restart: unless-stopped