Skip to content

Commit

Permalink
Clarify Docker is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Jan 15, 2021
1 parent 7c698b7 commit 2b9eddd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@ Then open http:https://localhost:4000.
The app won't work until you set up the database, as described below.

<details>
<summary>Setup with Docker</summary>
<summary>Setup with Docker (optional)</summary>
<p>You can also start dev build of the app by using docker-compose.</p>
<p>Make sure you have docker and docker-compose installed then run:</p>
<p>⚠️ This is <b>completely optional,</b> and is only for people who <i>prefer</i> Docker to global installs!</p>
<p>If you prefer Docker, make sure you have docker and docker-compose installed then run:</p>
<pre><code>docker-compose up</code></pre>
<h4>Running seed script</h4>
<p>1. Run containers in the detached mode</p>
<pre><code>docker-compose up -d</code></pre>
<p>2. Run seed script</p>
<pre><code>docker-compose exec notes-app npm run seed</code></pre>
<p>If you'd rather not use Docker, skip this section and continue below.</p>
</details>

## DB Setup
Expand Down

0 comments on commit 2b9eddd

Please sign in to comment.