Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Apr 7, 2024
1 parent db7b225 commit a70fc51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ between process cache and Redis.
spring:
application:
name: ${service.name:cosky}
redis:
url: redis://localhost:6379
data:
redis:
url: redis://localhost:6379
cloud:
cosky:
namespace: ${cosky.namespace:cosky-{system}}
Expand All @@ -111,14 +112,14 @@ logging:
```shell
cd cosky-lastVersion
# Working directory: cosky-lastVersion
bin/cosky --server.port=8080 --spring.redis.uri=redis://localhost:6379
bin/cosky --server.port=8080 --spring.data.redis.uri=redis://localhost:6379
```

#### Option 2:Run On Docker

```shell
docker pull ahoowang/cosky:lastVersion
docker run --name cosky -d -p 8080:8080 --link redis -e SPRING_REDIS_URL=redis://redis:6379 ahoowang/cosky:lastVersion
docker run --name cosky -d -p 8080:8080 --link redis -e SPRING_DATA_REDIS_URL=redis://redis:6379 ahoowang/cosky:lastVersion
```

#### Option 3:Run On Kubernetes
Expand All @@ -142,7 +143,7 @@ spec:
spec:
containers:
- env:
- name: SPRING_REDIS_URL
- name: SPRING_DATA_REDIS_URL
value: redis://redis-uri:6379
image: ahoowang/cosky:lastVersion
name: cosky
Expand Down
11 changes: 6 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@
spring:
application:
name: ${service.name:cosky}
redis:
url: redis://localhost:6379
data:
redis:
url: redis://localhost:6379
cloud:
cosky:
namespace: ${cosky.namespace:cosky-{system}}
Expand All @@ -110,14 +111,14 @@ logging:
```shell
cd cosky-lastVersion
# 工作目录: cosky
bin/cosky --server.port=8080 --spring.redis.uri=redis://localhost:6379
bin/cosky --server.port=8080 --spring.data.redis.uri=redis://localhost:6379
```

#### 方式二:在 Docker 中运行

```shell
docker pull ahoowang/cosky:lastVersion
docker run --name cosky -d -p 8080:8080 --link redis -e SPRING_REDIS_URL=redis://redis:6379 ahoowang/cosky:lastVersion
docker run --name cosky -d -p 8080:8080 --link redis -e SPRING_DATA_REDIS_URL=redis://redis:6379 ahoowang/cosky:lastVersion
```

#### 方式三:在 Kubernetes 中运行
Expand All @@ -141,7 +142,7 @@ spec:
spec:
containers:
- env:
- name: SPRING_REDIS_URL
- name: SPRING_DATA_REDIS_URL
value: redis://redis-uri:6379
image: ahoowang/cosky:lastVersion
name: cosky
Expand Down

0 comments on commit a70fc51

Please sign in to comment.