diff --git a/docker-compose.yml b/docker-compose.yml index 1dfcc10..4ff3f1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,7 @@ services: container_name: cardinal environment: - REDIS_ADDRESS=redis:6379 + - REDIS_PASSWORD=${REDIS_PASSWORD:-very_unsafe_password_replace_me} - BASE_SHARD_SEQUENCER_ADDRESS=evm:9601 build: target: runtime @@ -20,6 +21,7 @@ services: container_name: cardinal-debug environment: - REDIS_ADDRESS=redis:6379 + - REDIS_PASSWORD=${REDIS_PASSWORD:-very_unsafe_password_replace_me} - BASE_SHARD_SEQUENCER_ADDRESS=evm:9601 build: target: runtime-debug @@ -31,7 +33,6 @@ services: - redis expose: - "4040" - - "40000" ports: - "4040:4040" - "40000:40000" @@ -120,11 +121,7 @@ services: volumes: - data:/var/lib/cockroach expose: - - "8080" - "26257" - ports: - - "26257:26257" - - "8080:8080" healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:8080/health?ready=1" ] interval: 3s @@ -137,12 +134,9 @@ services: redis: container_name: redis image: redis:latest - environment: - - REDIS_PASSWORD=${REDIS_PASSWORD:-} + command: ["redis-server", "--requirepass", "${REDIS_PASSWORD:-very_unsafe_password_replace_me}"] expose: - "6379" - ports: - - "6379:6379" attach: false restart: unless-stopped volumes: @@ -163,8 +157,8 @@ services: retries: 20 ports: - "26657" - - "26658:26658" - - "26659:26659" + - "26658" + - "26659" - "9090" volumes: diff --git a/world.toml b/world.toml index e470e28..9de457f 100644 --- a/world.toml +++ b/world.toml @@ -3,11 +3,11 @@ CARDINAL_NAMESPACE = "defaultnamespace" # A namespace must be a unique alpha CARDINAL_ROLLUP_ENABLED = "false" # Enables rollup mode CARDINAL_LOG_LEVEL = "info" # Must be one of (debug, info, warn, error, fatal, panic, disabled, trace) CARDINAL_LOG_PRETTY= "true" -REDIS_ADDRESS = "localhost:6379" # UNIX Domain Socket or TCP Address -REDIS_PASSWORD = "" # If TCP address is used, setting a password is encouraged in production -TELEMETRY_TRACE_ENABLED = false # Enables OpenTelemetry tracing -TELEMETRY_PROFILER_ENABLED = false # Enables Datadog profiler -BASE_SHARD_SEQUENCER_ADDRESS = "localhost:9601" # Required if rollup mode is enabled +REDIS_ADDRESS = "localhost:6379" # UNIX Domain Socket or TCP Address +REDIS_PASSWORD = "very_unsafe_password_replace_me" # If TCP address is used, setting a password is encouraged in production +TELEMETRY_TRACE_ENABLED = false # Enables OpenTelemetry tracing +TELEMETRY_PROFILER_ENABLED = false # Enables Datadog profiler +BASE_SHARD_SEQUENCER_ADDRESS = "localhost:9601" # Required if rollup mode is enabled BASE_SHARD_ROUTER_KEY = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ01" # Secure auth token for game shard [evm] @@ -28,3 +28,15 @@ ENABLE_ALLOWLIST="false" # enable nakama's beta key feature. you can generate an # The number of undelivered notifications Nakama will allow before shutting down a connectino to a client. # See https://heroiclabs.com/docs/nakama/getting-started/configuration/#socket.outgoing_queue_size OUTGOING_QUEUE_SIZE=64 +# Enables tracing within Nakama, which integrates with external tracing tools such as Jaeger for visualizing system performance. +NAKAMA_TRACE_ENABLED = true +# Enables metrics collection within Nakama, integrating with Prometheus for system metrics tracking. +NAKAMA_METRICS_ENABLED = true +# Trace sample rate. valid values are between 0.0 to 1.0 inclusive. This is a float value. +NAKAMA_TRACE_SAMPLE_RATE = 0.6 +# Prometheus scraping interval in seconds. +NAKAMA_METRICS_INTERVAL = 30 + +[common] +# A key used by both Cardinal and EVM to coordinate activities +ROUTER_KEY = "router_key" \ No newline at end of file