Skip to content

Instantly share code, notes, and snippets.

@igalshilman
Created November 28, 2024 12:08
Show Gist options
  • Save igalshilman/5032d6ae2c165a1177bb901be1202251 to your computer and use it in GitHub Desktop.
Save igalshilman/5032d6ae2c165a1177bb901be1202251 to your computer and use it in GitHub Desktop.
A simple docker-compose for the distributed restate
services:
n1:
image: ghcr.io/restatedev/restate:main
ports:
- 8080:8080
- 9070:9070
- 5123:5123
restart: "no"
environment:
RESTATE_LOG_FILTER: restate=info
RESTATE_LOG_FORMAT: json
# main
RESTATE_ROLES: "[worker,log-server,admin,metadata-store]"
RESTATE_CLUSTER_NAME: foobar
RESTATE_BIFROST__DEFAULT_PROVIDER: replicated
RESTATE_ALLOW_BOOTSTRAP: true
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
networks:
- foobar
n2:
image: ghcr.io/restatedev/restate:main
restart: "no"
environment:
RESTATE_LOG_FILTER: restate=info
RESTATE_LOG_FORMAT: json
# follower
RESTATE_CLUSTER_NAME: foobar
RESTATE_BIFROST__DEFAULT_PROVIDER: replicated
RESTATE_ROLES: "[worker,admin,log-server]"
RESTATE_METADATA_STORE_CLIENT__ADDRESS: "http://n1:5123"
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
networks:
- foobar
n3:
image: ghcr.io/restatedev/restate:main
restart: "no"
environment:
RESTATE_LOG_FILTER: restate=info
RESTATE_LOG_FORMAT: json
# follower
RESTATE_CLUSTER_NAME: foobar
RESTATE_BIFROST__DEFAULT_PROVIDER: replicated
RESTATE_ROLES: "[worker,admin,log-server]"
RESTATE_METADATA_STORE_CLIENT__ADDRESS: "http://n1:5123"
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
networks:
- foobar
networks:
foobar:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment