File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,15 +5,24 @@ services:
55 restart : always
66 environment :
77 - TZ=Asia/Shanghai
8- - DRIVER_NAME=mysql
9- - DATASOURCE=root:123456@tcp(mysql:3306)/jzero-admin?charset=utf8mb4&parseTime=True&loc=Local
10- # # using postgres
8+
9+ # 使用 sqlite
10+ - DRIVER_NAME=sqlite
11+ - DATASOURCE=postgres://root:123456@postgres:5432/jzero-admin
12+
13+ # # 使用 mysql
14+ # - DRIVER_NAME=mysql
15+ # - DATASOURCE=root:123456@tcp(mysql:3306)/jzero-admin?charset=utf8mb4&parseTime=True&loc=Local
16+
17+ # # 使用 postgres
1118# - DRIVER_NAME=pgx
1219# - DATASOURCE=postgres://root:123456@postgres:5432/jzero-admin
13- - REDIS_HOST=redis:6379
14- - CACHE_TYPE=redis
15- depends_on :
16- - mysql
20+
21+ # 使用 miniredis(内存)
22+ - REDIS_MINI_REDIS=true
23+
24+ # # 使用 redis
25+ # - REDIS_HOST=redis:6379
1726 web :
1827 build :
1928 context : ../../web
Original file line number Diff line number Diff line change 2121 driverName : " ${DRIVER_NAME:-sqlite}"
2222
2323redis :
24- host : " ${REDIS_HOST:-127.0.0.1:6379}"
25- type : " ${REDIS_TYPE:-node}"
26-
27- cacheType : " ${CACHE_TYPE:-local}"
24+ miniRedis : ${REDIS_MINI_REDIS:-true}
25+ # host: "${REDIS_HOST:-127.0.0.1:6379}"
26+ # type: "${REDIS_TYPE:-node}"
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ require (
1010 github.com/google/uuid v1.6.0
1111 github.com/guregu/null/v5 v5.0.0
1212 github.com/huandu/go-sqlbuilder v1.38.1
13- github.com/jzero-io/jzero v1.0.0-beta9
14- github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251218054929-437c8f0b2eb6
13+ github.com/jzero-io/jzero v1.0.0-beta9.0.20251219061702-e0e016d70932
14+ github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251219070639-727123392fc7
1515 github.com/pkg/errors v0.9.1
1616 github.com/samber/lo v1.52.0
1717 github.com/spf13/cast v1.10.0
Original file line number Diff line number Diff line change @@ -215,10 +215,10 @@ github.com/jzero-io/desc v1.1.0 h1:V6PvGnYWxfR24iroaJ8R/jlChiBBQ2hJdxhHKkSvAQY=
215215github.com/jzero-io/desc v1.1.0 /go.mod h1:gav1fZ49+rsEjT/5MUNp6ueyNFuX0lDKGyzIM6NrB+E =
216216github.com/jzero-io/go_fmt v0.0.0-20250905015347-1a45352494b7 h1:XamNaWUxHlOd7ytrgR1gwR2O0vo02gMKaTroXLXrh0w =
217217github.com/jzero-io/go_fmt v0.0.0-20250905015347-1a45352494b7 /go.mod h1:Wupl/J9DdDywVAOC5ExsbfkET0aYuNLhZPlpBF8+OnE =
218- github.com/jzero-io/jzero v1.0.0-beta9 h1:8zttpbErhPQCbcDItLudulsTsyYlptwNKN3k6Ok4WVk =
219- github.com/jzero-io/jzero v1.0.0-beta9 /go.mod h1:YMBuEeq8efRGd6UqHASkY6W/Pk/xHQcuJe/G/1uRbKU =
220- github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251218054929-437c8f0b2eb6 h1:vRXk06hPt4n4KVhLh2ujQ8HpGoPTtSc95/FU27omPZU =
221- github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251218054929-437c8f0b2eb6 /go.mod h1:oX1AZ0YRHEaAWnER/cX0rPKbATNwynDHwTBtzzME4gk =
218+ github.com/jzero-io/jzero v1.0.0-beta9.0.20251219061702-e0e016d70932 h1:5i1Y1NObo1QQViRaVu5moZN6WqkR/+yznkJ1dgPc4f4 =
219+ github.com/jzero-io/jzero v1.0.0-beta9.0.20251219061702-e0e016d70932 /go.mod h1:YMBuEeq8efRGd6UqHASkY6W/Pk/xHQcuJe/G/1uRbKU =
220+ github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251219070639-727123392fc7 h1:enG8OCtYbRPzB9sXiAJM2ZXfDen3Uf4UxqX/DRY7CRc =
221+ github.com/jzero-io/jzero-admin/core-engine v0.0.0-20251219070639-727123392fc7 /go.mod h1:TkPn1M+hIxsoWEiph7pHj3Dr/Jc6HyEZl4+y2BgpLlc =
222222github.com/jzero-io/jzero/cmd/jzero v1.0.0-beta9 h1:TH1c6J38zK/BREt+df3g8Cb1M4PzSDQ3NiWQLx9ZMzg =
223223github.com/jzero-io/jzero/cmd/jzero v1.0.0-beta9 /go.mod h1:USfnTtNVVbL1O7XMR/NwRv44OIPaQ0mL+HzE9vvV0tQ =
224224github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4 =
You can’t perform that action at this time.
0 commit comments