From 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 16 Jun 2022 14:36:07 +0800
Subject: [PATCH] 模拟考试修改
---
docker-compose.yml | 30 +++++++++++++-----------------
1 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 790cf49..5c2ae21 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,24 +1,20 @@
version: '3.1'
services:
zhbaw:
- image: 192.168.0.191/zhbaw/zhbaw:SNAPSHOT-$BUILD_NUMBER
- container_name: zhbaw
- deploy:
- replicas: 1
- update_config:
- parallelism: 2
- delay: 30s
- depends_on:
- - redis
+ # 从 Harbor 私有仓库拉取镜像
+# image: 192.168.0.191/zhbaw/zhbaw:SNAPSHOT-$BUILD_NUMBER
+ image: zhbaw:latest
ports:
- "81:81"
+ volumes:
+ - /home/zhongsong/anbao/:/home/zhongsong/anbao/
# 容器停止后会重启
restart: always
- redis:
- image: "redis:alpine"
- container_name: reids-alpine
- deploy:
- replicas: 1
- ports:
- - "6379:6379"
- restart: always
+# depends_on:
+# - redis
+# redis:
+# image: "redis:alpine"
+# ports:
+# - "6381:6379"
+# restart: always
+
--
Gitblit v1.9.3