From 658c56afe1389e243d866bca7d6cd8c9b065a2b8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 24 Dec 2022 02:57:29 +0100 Subject: [PATCH] start Rails server using rdebug-ide in Docker --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cfda3ec2..18afab61 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: . dockerfile: .docker/ruby/Dockerfile - command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" + command: bash -c "rm -f tmp/pids/server.pid && rdebug-ide --skip_wait_for_start --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s -p 3000 -b '0.0.0.0'" depends_on: - postgres - redis @@ -16,10 +16,11 @@ services: - cache:/cache ports: - 3000:3000 + - 1234:1234 redis: image: redis:3.2.11-alpine - ports: + ports: - 6379:6379 postgres: @@ -34,4 +35,4 @@ services: volumes: db: - cache: \ No newline at end of file + cache: