From 17d6662b8bf40bb15dbf3da75e8f6f9542c4cf8a Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 4 Feb 2022 17:13:53 +0000 Subject: [PATCH] Add db seed for docker-compose instructions to readme --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c630f3a1b..9dfa57610 100644 --- a/README.md +++ b/README.md @@ -39,13 +39,14 @@ The Rails server will start on . ### Using Docker -```sh -docker-compose build -``` -To be able to debug with Pry run the app using -```sh -docker-compose run --service-ports app -``` +1. Build the image:\ +`docker-compose build` + +2. Seed the database if required:\ +`docker-compose run --rm app /bin/bash -c 'rake db:seed'` + +3. To be able to debug with Pry run the app using:\ +`docker-compose run --service-ports app` If this is not needed you can run `docker-compose up` as normal