RubyDevDock aims to avoid having to install ruby, postgres in your host machine. This is for development environment only.
Clone the repo
git clone https://github.com/scudelletti/rubydev-dock.git
Go to repo's folder
- Edit volumes_source container to point the volume to your app's directory, please check docker-compose documentation.
- Adjust and customize database environment variables or other containers information to your taste.
- Start all containers defined in the docker-compose.yml
docker-compose up -d
Then you just have to access it, probably will be something like
http://localhost:3000 for app and
http://localhost:5050 for pgAdmin. You can see the ports running
- Visualize logs from all containers
docker-compose logs -f
- Use current running container to run command
docker-compose exec workspace bash
- Create a new container to run command
docker-compose run workspace bash