Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose documentation #documentation #2675

Open
dev-artisan opened this issue Feb 8, 2025 · 2 comments
Open

Docker Compose documentation #documentation #2675

dev-artisan opened this issue Feb 8, 2025 · 2 comments

Comments

@dev-artisan
Copy link

dev-artisan commented Feb 8, 2025

Hi, thanks for the great work.
I wanted to suggest an addition to the documentation for docker, specifically that the restate server doesn't persist data by default and requires the volume mapped (the location of the volume) and the hostname or RESTATE_NODE_NAME envvar also set.

Please see the discussion on discord here:
https://discord.com/channels/1128210118216007792/1306272565186138192

The sample docker compose file below is working for me

services:
  restate-server:
    container_name: restate-server
    image: docker.io/restatedev/restate:1.1
    ports:
      - 8080:8080
      - 9070:9070
      - 9071:9071
    environment:
      - RESTATE_TRACING_ENDPOINT=http://host.docker.internal:4317
      - RESTATE_NODE_NAME=<node-name>
    volumes:
      - /$HOME/restate/data/:/restate-data
    extra_hosts:
      - "host.docker.internal:host-gateway"
  jaeger:
    container_name: jaeger
    image: jaegertracing/all-in-one:1.46
    environment:
      - COLLECTOR_OTLP_ENABLED=true
    ports:
      - 4317:4317
      - 16686:16686
@muhamadazmy
Copy link
Contributor

You can also always set the node name by passing the RESTATE_NODE_NAME: <name> env var.

@dev-artisan
Copy link
Author

You can also always set the node name by passing the RESTATE_NODE_NAME: <name> env var.

This is actually better I think, will update, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants