Skip to content

Commit

Permalink
Enable pry binding via Docker
Browse files Browse the repository at this point in the history
> If you're using docker-compose, you can add these flags to
> docker-compose.yml:
>
>    app:
>      tty: true
>      stdin_open: true

> And then attach to your process with docker attach project_app_1.
> pry-rails works here now. Ensure less is installed on your container
> for the optimal pry experience.
>
> – https://stackoverflow.com/a/37264588
  • Loading branch information
garethrees committed Sep 11, 2023
1 parent 9c2d9b6 commit 587e9df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
dockerfile: docker/Dockerfile
args:
RUBY_VERSION: '${RUBY_VERSION:-3.0}'
tty: true
stdin_open: true
environment:
- BUNDLE_PATH=/bundle/vendor
- DATABASE_URL=postgres://postgres:password@db/
Expand Down

0 comments on commit 587e9df

Please sign in to comment.