Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a development docker compose to root of project #4707

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"
23 changes: 15 additions & 8 deletions docs/docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down