10 months ago
Is possible to run/host Redpanada using the docker-compose file.
From the Raiway doc , it said i can drag and drop docker-compose file but it seems not to be working when i do
3 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 Is it possible to run docker compose as a railway service
- 🧵 handling db migrations
- 📚 Build from a Dockerfile
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Yes railway does support docker compose files. I just attempted to deploy the redpanda for this bounty, the problem you are facing is "multiple volumes are not supported for a single service".
I checked the Dockerfile and in almost all services there is an attempt to mount a custom file to the container which railway treats as if they are volumes so it creates volumes by those names. Here in this instance "./bootstrap.yml" is being used by 3 services so first creates a volume by name "./bootstrap.yml" then throws errors because a volume cannot be mounted to multiple services.
./bootstrap.yml:/etc/redpanda/.bootstrap.yaml
./config:/tmp/config/
./transactions-schema.json:/etc/redpanda/transactions-schema.json
./transform/regex.wasm:/etc/redpanda/regex.wasmRailway doesn't support volume mounts for config files so you will have to create custom Dockerfile that mounts these config files at build time
A simplistic example of Dockerfile for one of the service redpanda-console would look something like this.
FROM docker.redpanda.com/redpandadata/console:v3.1.3
COPY console-config.yam /tmp/config.yml
ENV CONFIG_FILEPATH=/tmp/config.yml
CMD ["/bin/sh", "-c", "echo \"$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"]Attachments
9 months ago
I am also looking to run a single node Redpanada, but I am getting the below error:
INFO 2025-08-22 16:52:48,236 seastar - Reactor backend: epoll
WARN 2025-08-22 16:52:48,263 seastar - Creation of perf_event based stall detector failed: falling back to posix timer: std::__1::system_error (error system:1, perf_event_open() failed: Operation not permitted)
WARN 2025-08-22 16:52:48,263 cpu_profiler - Creation of perf_event based cpu profiler failed: falling back to posix timer: perf_event_open() failed: Operation not permitted
WARN 2025-08-22 16:52:48,263 seastar - Creation of perf_event based stall detector failed: falling back to posix timer: std::__1::system_error (error system:1, perf_event_open() failed: Operation not permitted)I have attached the docker compose that I am using.
Attachments