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 install
First start up the database container:
docker-compose up --detach db
Then verify that the container is running:
docker-compose ps
The output should look like:
Name Command State Ports
-------------------------------------------------------------------
projectname_db_1 docker-entrypoint.sh postgres Up 5432/tcp
Run the following to create the database:
docker-compose run web rails db:create
Start up the containers:
docker-compose up
Then verify that the containers are running:
docker-compose ps
The app should be running at http://localhost:3000/