Periodically run the following two commands to ensure your ruby and node dependencies are up to date:
docker-compose run web bundle install
docker-compose run web yarn installFirst start up the database container:
docker-compose up --detach dbThen verify that the container is running:
docker-compose psThe output should look like:
Name Command State Ports
-------------------------------------------------------------------
projectname_db_1 docker-entrypoint.sh postgres Up 5432/tcpRun the following to create the database:
docker-compose run web rails db:createStart up the containers:
docker-compose upThen verify that the containers are running:
docker-compose psThe app should be running at http://localhost:3000/