mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
start Rails server using rdebug-ide in Docker
This commit is contained in:
parent
9895782a02
commit
658c56afe1
1 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: .docker/ruby/Dockerfile
|
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:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- redis
|
- redis
|
||||||
|
@ -16,10 +16,11 @@ services:
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
- 1234:1234
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:3.2.11-alpine
|
image: redis:3.2.11-alpine
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
@ -34,4 +35,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db:
|
db:
|
||||||
cache:
|
cache:
|
||||||
|
|
Loading…
Reference in a new issue