Skip to content

Commit

Permalink
some improves for ci yaml and package cmd/gf, database/gdb (gogf#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn authored Jul 7, 2022
1 parent d26eadf commit f876a56
Show file tree
Hide file tree
Showing 19 changed files with 997 additions and 885 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
version: '2'
version: "2"

services:
redis-master:
container_name: redis-master
image: 'bitnami/redis:latest'
image: "loads/redis:7.0"
environment:
- REDIS_REPLICATION_MODE=master
- REDIS_PASSWORD=111111
ports:
- 6380:6379

redis-slave1:
container_name: redis-slave1
image: 'bitnami/redis:latest'
image: "loads/redis:7.0"
environment:
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-master
Expand All @@ -23,9 +24,10 @@ services:
- redis-master
links:
- redis-master

redis-slave2:
container_name: redis-slave2
image: 'bitnami/redis:latest'
image: "loads/redis:7.0"
environment:
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-master
Expand All @@ -37,9 +39,10 @@ services:
- redis-master
links:
- redis-master

redis-sentinel-1:
container_name: redis-sentinel-1
image: 'bitnami/redis-sentinel:latest'
image: "loads/redis-sentinel:7.0"
environment:
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
Expand All @@ -57,7 +60,7 @@ services:

redis-sentinel-2:
container_name: redis-sentinel-2
image: 'bitnami/redis-sentinel:latest'
image: "loads/redis-sentinel:7.0"
environment:
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
Expand All @@ -73,10 +76,9 @@ services:
ports:
- 26380:26379


redis-sentinel-3:
container_name: redis-sentinel-3
image: 'bitnami/redis-sentinel:latest'
image: "loads/redis-sentinel:7.0"
environment:
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
Expand Down
Loading

0 comments on commit f876a56

Please sign in to comment.