Skip to content

Commit f19128d

Browse files
committed
Add docker section
1 parent 20f7a8b commit f19128d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,22 @@ Auto accept any connections, default 0.
189189
White list of origins allowed to connect, default is '*'.
190190
Multiple origins can be separated by a ',' e.g localhost,example.com,192.168.33.10.
191191

192+
# Docker
193+
194+
You can run the containers using:
195+
196+
docker-compose up
197+
198+
The above will build the images if they do not exist and then start the containers.
199+
By default you can access the container at http://localhost:7777/index.html
200+
201+
You can use the following `npm` scripts for testing:
202+
203+
npm run docker:insert -- --title=foo --content=bar --image=example
204+
npm run docker:update -- --id=1 --title=foo --content=bar --image=example
205+
npm run docker:select -- --id=1
206+
npm run docker:delete -- --id=1
207+
192208
# Testing
193209

194210
You can then test the behavior by running queries against your database:

0 commit comments

Comments
 (0)