Important Ports:
- HAProxy Admin Port 70
- HAProxy Port 80
- MailCatcher 1080
docker-compose build
docker-compose run app bundle exec rake db:create
docker-compose run app bundle exec rake db:migrate
docker-compose up
Now you will be able to access the haproxy which will balance the rails apps which use postgres. Don't forget to access the right Docker IP.
docker-machine ls
/
- will add and email on worker and respond with an text/debug
- will call pry debugger - Please read Caveats before acessing./sidekiq
- Sidekiq Monitor
- List Env Variables
docker-compose run app env
- Run Tests the -e is Optional
docker-compose run -e "RAILS_ENV=test" app rake test
- Start just one container
docker-compose up mailcatcher
- Logs for specific app
docker-compose logs postgres
- Start app with TTY and service ports working
docker-compose run --service-ports app
docker-compose run
creates a TTY session for your app to connect to, allowing interactive debugging. The default docker-compose up
command does not create a TTY session.
Instead of running docker-compose up run the following command:
docker-compose run --service-ports app
Now you'll be able to access the debugger.
๐ณ