From 56f8964483b8d26ec5852468de4f82c439c2d835 Mon Sep 17 00:00:00 2001 From: nick-funk Date: Mon, 2 Dec 2024 09:54:53 -0700 Subject: [PATCH 1/2] add a development docker compose to root of project allows devs to perform a `docker compose up -d` at any time to create their mongo, redis in docker immediately without having to go grab the details from docs.coralproject.net --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..95b1d5142f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + redis: + image: redis:7.2.5 + container_name: coral-redis + restart: always + ports: + - "6379:6379" + mongo: + image: mongo:8.0.3 + container_name: coral-mongo + restart: always + ports: + - "27017:27017" \ No newline at end of file From 85fa006c71d0f803b08260ff42a74724549d6345 Mon Sep 17 00:00:00 2001 From: nick-funk Date: Tue, 3 Dec 2024 10:42:56 -0700 Subject: [PATCH 2/2] update dev docs with details about new docker compose file --- docs/docs/development.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/docs/docs/development.md b/docs/docs/development.md index 922ea74b2e..7414f1b380 100644 --- a/docs/docs/development.md +++ b/docs/docs/development.md @@ -22,16 +22,23 @@ sh scripts/pnpm-i.sh Running Coral with default settings assumes that you have: -- MongoDB ^4.2 running on `127.0.0.1:27017` -- Redis ^3.2 running on `127.0.0.1:6379` +- MongoDB ^8.0.3 running on `127.0.0.1:27017` +- Redis ^7.2.5 running on `127.0.0.1:6379` -If you don't already have these databases running, you can execute the following -assuming you have Docker installed on your local machine: +If you don't already have these databases running, you can do either of the following: -```bash -docker run -d -p 27017:27017 --restart always --name mongo mongo:4.2 -docker run -d -p 6379:6379 --restart always --name redis redis:3.2 -``` + +- from the root of the `talk` repository, use our development compose file to stand up the Docker images you need: + + ```bash + docker compose up -d + ``` +- or if you prefer total control over your Docker images, you can manually spawn the needed images: + + ```bash + docker run -d -p 27017:27017 --restart always --name mongo mongo:8.0.3 + docker run -d -p 6379:6379 --restart always --name redis redis:7.2.5 + ``` Then initialize Coral using the helper script: