Hi everyone !
I’m passing a rails project on Docker. Currently, it’s only for development purpose.
I would like to choose the opening port without having to change the docker-compose.yml
For example :
$ docker-compose up rails-port=3001
# Launch the ruby server
app:
build: .
command: sh docker/docker-entrypoint.sh
ports:
- "3000:#{RAILS_PORT}"
Is it possible to do something similar?
Thx