Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Swift",
"dockerComposeFile": "docker-compose-cluster.yml",
"dockerComposeFile": "docker-compose-replica.yml",
"service": "app",
"workspaceFolder": "/workspace",
"features": {
Expand Down
32 changes: 27 additions & 5 deletions .devcontainer/docker-compose-replica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ services:
- valkey_primary
- valkey_replica_1
- valkey_replica_2
- valkey_replica_3
- valkey_sentinel_1
- valkey_sentinel_2
- valkey_sentinel_3
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
environment:
- VALKEY_PRIMARY_HOSTNAME=127.0.0.1
- VALKEY_PRIMARY_PORT=9000
- VALKEY_SENTINEL_HOSTNAME=127.0.0.1
- VALKEY_SENTINEL_PORT=10000
command: sleep infinity

valkey:
Expand All @@ -43,13 +47,17 @@ services:
network_mode: "host"
depends_on:
- valkey
volumes:
- ../valkey:/valkey
command: valkey-server --port 9000

valkey_replica_1:
image: 'valkey/valkey:latest'
network_mode: "host"
depends_on:
- valkey
volumes:
- ../valkey:/valkey
command: valkey-server --port 9001 --replicaof 127.0.0.1 9000

valkey_replica_2:
Expand All @@ -59,9 +67,23 @@ services:
- valkey
command: valkey-server --port 9002 --replicaof 127.0.0.1 9000

valkey_replica_3:
valkey_sentinel_1:
image: 'valkey/valkey:latest'
network_mode: "host"
depends_on:
- valkey_replica_2
command: valkey-server --port 9003 --replicaof 127.0.0.1 9002
volumes:
- ../valkey:/valkey
command: valkey-sentinel /valkey/sentinel/sentinel1.conf --port 10000

valkey_sentinel_2:
image: 'valkey/valkey:latest'
network_mode: "host"
volumes:
- ../valkey:/valkey
command: valkey-sentinel /valkey/sentinel/sentinel2.conf --port 10001

valkey_sentinel_3:
image: 'valkey/valkey:latest'
network_mode: "host"
volumes:
- ../valkey:/valkey
command: valkey-sentinel /valkey/sentinel/sentinel3.conf --port 10002
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See LICENSE.txt for license information
// SPDX-License-Identifier: Apache-2.0
//
// This file is autogenerated by ValkeyCommandsBuilder

import NIOCore

Expand Down
Loading
Loading