@@ -16,51 +16,6 @@ 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-
6419 postgresql :
6520 image : registry.sciol.ac.cn/library/postgres:16.8-alpine
6621 pull_policy : if_not_present
@@ -170,7 +125,6 @@ services:
170125 casdoor :
171126 image : registry.sciol.ac.cn/library/casdoor:v2.43.0
172127 container_name : sciol-casdoor
173- entrypoint : /bin/sh -c './server --createDatabase=true'
174128 network_mode : ' service:network-service'
175129 depends_on :
176130 postgresql :
@@ -182,6 +136,9 @@ services:
182136 driverName : ' postgres'
183137 dataSourceName : ' user=${DATABASE_USER:-postgres} password=${DATABASE_PASSWORD:-postgres} host=127.0.0.1 port=5432 sslmode=disable dbname=casdoor'
184138 runmode : ' dev'
139+ dbName : ' casdoor'
140+ initDataNewOnly : ' true'
141+ initDataFile : ' /init_data.json'
185142 volumes :
186143 - ../infra/casdoor/init_data.json:/init_data.json
187144 attach : false
@@ -193,8 +150,6 @@ volumes:
193150 driver : local
194151 s3_data :
195152 driver : local
196- # nacos-data:
197- # driver: local
198153
199154networks :
200155 sciol-network :
0 commit comments