diff --git a/backend/db/DB-README.md b/backend/db/DB-README.md index 1640103..0537633 100644 --- a/backend/db/DB-README.md +++ b/backend/db/DB-README.md @@ -4,15 +4,15 @@ Docker container to provide database for development & production. # Pre-requisites ## In production: -Make sure you: -* [understand user-defined networks](https://docs.docker.com/engine/userguide/networking/#user-defined-networks) +Make sure you: +* [understand user-defined networks](https://docs.docker.com/engine/userguide/networking/#user-defined-networks) * have your network created: `docker network create network-1` * have other container who use this database join this network. Read: [connecting containers](https://docs.docker.com/engine/userguide/networking/work-with-networks/#connect-containers) * note: `link` option may be used here (its not the same as legacy`link` for default bridge network). # Run Build Image -* `docker build -t words-db .` +* `docker build . -t words-db .` Stop previous container if running * `docker stop words-api-box` @@ -30,11 +30,10 @@ Useful Queries: * none (queries are simple, check backend code for examples) -#Road-map: +#Road-map: * Consider whether KNEX migration belongs in DB or API or separate ** when I deploy db I want db to be up to date ** when I deploy API ... I probably just want to deploy API (but I might also be deploying new features which require db schema update) ** API will be deployed way more often then schema (but DB container itself might never be re-deployed) ** running knex when there's no migration shouldn't take more then a split second ** I don't deploy API via docker on local (can I deploy an already migrated DB container?) -