11name : sciol-infra
22services :
33 network-service :
4- image : registry.sciol.ac.cn/library/ alpine:3.22
4+ image : alpine:3.22
55 ports :
66 # - '${POSTGRES_PORT:-5432}:5432'
77 - ' ${MINIO_PORT:-9000}:9000'
@@ -16,8 +16,53 @@ services:
1616 networks :
1717 - sciol-network
1818
19+ # nacos:
20+ # image: nacos/nacos-server:v3.0.2
21+ # container_name: sciol-nacos
22+ # pull_policy: if_not_present
23+ # network_mode: 'service:network-service'
24+ # environment:
25+ # - MODE=standalone
26+ # - PREFER_HOST_MODE=hostname
27+ # - NACOS_AUTH_ENABLE=false
28+ # - NACOS_AUTH_TOKEN=012345678901234567890123456789012345678901234567890123456789
29+ # - NACOS_AUTH_IDENTITY_KEY=serverIdentity
30+ # - NACOS_AUTH_IDENTITY_VALUE=security
31+ # # - NACOS_AUTH_ADMIN_USERNAME=nacos
32+ # # - NACOS_AUTH_ADMIN_PASSWORD=nacos
33+ # restart: always
34+ # deploy:
35+ # replicas: ${NACOS_REPLICAS:-1}
36+ # volumes:
37+ # - nacos-data:/home/nacos/data
38+ # - ../infra/nacos/init.sh:/init.sh
39+ # entrypoint: >
40+ # /bin/sh -c "
41+ # /home/nacos/bin/docker-startup.sh &
42+ # pid=$$!
43+
44+ # # 等待 Nacos 启动
45+ # until curl -i http://localhost:8080 > /dev/null 2>&1; do
46+ # echo 'Waiting for Nacos to start...'
47+ # sleep 2
48+ # done
49+
50+ # # 执行初始化脚本
51+ # chmod +x /init.sh
52+ # /init.sh
53+
54+ # wait $$pid
55+ # "
56+ # healthcheck:
57+ # test:
58+ # ['CMD-SHELL', 'curl --fail --silent --max-time 3 http://localhost:8080']
59+ # interval: 30s
60+ # timeout: 5s
61+ # retries: 3
62+ # attach: false
63+
1964 postgresql :
20- image : registry.sciol.ac.cn/library/ postgres:16.8-alpine
65+ image : postgres:16.8-alpine
2166 pull_policy : if_not_present
2267 network_mode : ' service:network-service'
2368 restart : always
@@ -43,7 +88,7 @@ services:
4388 - db-data:/var/lib/postgresql/data
4489
4590 minio :
46- image : registry.sciol.ac.cn/library/ minio
91+ image : minio/ minio:RELEASE.2025-04-22T22-12-26Z
4792 container_name : sciol-minio
4893 network_mode : ' service:network-service'
4994 volumes :
@@ -82,6 +127,14 @@ services:
82127 echo 'Bucket casdoor already exists'
83128 fi
84129
130+ # 检查 Xyzen 存储桶是否存在,不存在则创建
131+ if ! mc ls myminio/xyzen > /dev/null 2>&1; then
132+ echo 'Creating bucket xyzen'
133+ mc mb myminio/xyzen
134+ else
135+ echo 'Bucket xyzen already exists'
136+ fi
137+
85138 mc anonymous set download myminio/casdoor
86139
87140 # 检查 Lab 收集存储桶是否启用,启用则创建
@@ -108,7 +161,7 @@ services:
108161 attach : false
109162
110163 redis :
111- image : registry.sciol.ac.cn/library/ redis:7.4.2-alpine
164+ image : redis:7.4.2-alpine
112165 network_mode : ' service:network-service'
113166 restart : always
114167 volumes :
@@ -123,7 +176,7 @@ services:
123176 replicas : ${REDIS_REPLICAS:-1}
124177
125178 casdoor :
126- image : registry.sciol.ac.cn/library /casdoor:v2.43.0
179+ image : casbin /casdoor:v2.43.0
127180 container_name : sciol-casdoor
128181 network_mode : ' service:network-service'
129182 depends_on :
@@ -150,6 +203,8 @@ volumes:
150203 driver : local
151204 s3_data :
152205 driver : local
206+ # nacos-data:
207+ # driver: local
153208
154209networks :
155210 sciol-network :
0 commit comments