gleydon

gleydon

Sustainable Web Development with Ruby on Rails: docker-compose.yml

Really enjoying the book. Thanks!

I’m just wondering why you expose port 22:22 in the docker-compose.yml but you don’t install sshd on the server. Is this for a down the road feature (i.e. add sshd to server) . Also it generates a port in use error when you do bin/start on Mac since I’ve got Remote Login configured. Wouldn’t something like 9022:22 be ‘safer’ ?

First Post!

davetron5000

davetron5000

Author of Rails, Angular, Postgres, and Bootstrap

Weird, I thought that was commented. tl;dr you can remove that.

It’s there because the book builds via an automated script that ssh’es into the Docker container running the example app, so when the book says “edit this file to change this” the script I use to maintain the book actually does that.

In my case, the entire thing is run via Docker Compose, so port 22 doesn’t conflict with my computer since the port in that case is inside the virtual network set up by Docker.

If none of that is interesting or makes sense, you can definitely ignore and just remove that bit from the Dockerfile.

Where Next?

Popular Pragmatic Bookshelf topics Top

herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |> handle_event() |> render() but the correc...
New
joepstender
The generated iex result below should list products instead of product for the metadata. (page 67) iex> product = %Product{} %Pento....
New
gilesdotcodes
In case this helps anyone, I’ve had issues setting up the rails source code. Here were the solutions: In Gemfile, change gem 'rails' t...
New
New
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
New
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New
imeraj
xdif/server.ex code from book does not work with the XDig client from the book. I noticed inside handle_info call, it’s not sending the ...
New

Other popular topics Top

AstonJ
What chair do you have while working… and why? Is there a ‘best’ type of chair or working position for developers?
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
AstonJ
Do the test and post your score :nerd_face: :keyboard: If possible, please add info such as the keyboard you’re using, the layout (Qw...
New
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
New
Exadra37
I am asking for any distro that only has the bare-bones to be able to get a shell in the server and then just install the packages as we ...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
AstonJ
Saw this on TikTok of all places! :lol: Anyone heard of them before? Lite:
New
Help
I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New

Sub Categories: