diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8da35abd398..1d80cc8fbbd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,6 +8,7 @@ on: - "**" paths: - 'docker/Dockerfile' + - 'docker/docker-compose.yml' - 'docker/compose.sh' - 'Cargo.toml' - '.github/workflows/docker.yml' @@ -59,4 +60,4 @@ jobs: # Docker compose can take some time to start max_attempts: 5 timeout_minutes: 2 - command: sleep 60 && linera --wallet docker/wallet.json --storage rocksdb:docker/linera.db sync-balance \ No newline at end of file + command: sleep 60 && linera --wallet docker/wallet.json --storage rocksdb:docker/linera.db sync-balance diff --git a/configuration/compose/validator.toml b/configuration/compose/validator.toml index 538a3562106..699eb243ffa 100644 --- a/configuration/compose/validator.toml +++ b/configuration/compose/validator.toml @@ -16,7 +16,25 @@ Grpc = "ClearText" Grpc = "ClearText" [[shards]] -host = "shard" +host = "docker-shard-1" port = 19100 -metrics_host = "shard" +metrics_host = "docker-shard-1" +metrics_port = 21100 + +[[shards]] +host = "docker-shard-2" +port = 19100 +metrics_host = "docker-shard-2" +metrics_port = 21100 + +[[shards]] +host = "docker-shard-3" +port = 19100 +metrics_host = "docker-shard-3" +metrics_port = 21100 + +[[shards]] +host = "docker-shard-4" +port = 19100 +metrics_host = "docker-shard-4" metrics_port = 21100 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 76c1ca171b4..27a15d948b3 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -19,7 +19,8 @@ services: - linera-shared:/shared shard: image: linera - container_name: shard + deploy: + replicas: 4 command: [ "./compose-server-entrypoint.sh" ] volumes: - .:/config