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

refactor(automation): Simplify docker compose files #5657

Merged
merged 12 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 5 additions & 0 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ HOST_NAME=http://localhost
NODE_ENV=local
MONGO_MAX_POOL_SIZE=500
MONGO_MIN_POOL_SIZE=100
DOCKER_MONGO_PORT=27017
# MONGO USER
MONGO_INITDB_ROOT_USERNAME=root
# MONGO PASSWORD
MONGO_INITDB_ROOT_PASSWORD=secret
MONGO_URL=mongodb://root:secret@mongodb:27017/novu-db?authSource=admin
REDIS_HOST=redis

DOCKER_REDIS_SERVICE_PORT=6379
REDIS_PASSWORD=
REDIS_CACHE_SERVICE_HOST=

Expand Down Expand Up @@ -60,3 +63,5 @@ SENTRY_DSN=
# change these values
NEW_RELIC_APP_NAME=
NEW_RELIC_LICENSE_KEY=

DOCKER_LOCALSTACK_PORT=4566
20 changes: 20 additions & 0 deletions docker/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ docker-compose -f ./local/deployment/docker-compose.yml up

Now visit [http://127.0.0.1:4200](http://127.0.0.1:4200) to start using Novu.

### Developing

Clone the Novu repo and enter the docker directory locally:

```sh
# Get the code
git clone https://github.com/novuhq/novu

# Go to the docker folder
cd novu/docker

# Copy the example env file
cp .env.example ./local/development/.env

# Start Novu
docker-compose -f ./local/development/docker-compose.yml up
```

Now visit [http://127.0.0.1:4200](http://127.0.0.1:4200) to start using Novu.

### Securing your setup

While we provide you with some example secrets for getting started, you should NEVER deploy your Novu setup using the defaults provided.
Expand Down
Cliftonz marked this conversation as resolved.
Show resolved Hide resolved
File renamed without changes.
242 changes: 0 additions & 242 deletions docker/local/development/docker-compose.redis-cluster.yml

This file was deleted.

6 changes: 3 additions & 3 deletions docker/local/development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
environment:
- SERVICES=s3
ports:
- "4566:4566"
- "${DOCKER_LOCALSTACK_PORT}:4566"
Cliftonz marked this conversation as resolved.
Show resolved Hide resolved
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
Expand All @@ -21,7 +21,7 @@ services:
image: mongo
network_mode: bridge
ports:
- "27017:27017"
- "${DOCKER_MONGO_PORT}:27017"
Cliftonz marked this conversation as resolved.
Show resolved Hide resolved
volumes:
- "${TMPDIR:-/tmp/mongo}:/db/data"
healthcheck:
Expand All @@ -33,7 +33,7 @@ services:
image: redis
network_mode: bridge
ports:
- "6379:6379"
- "${DOCKER_REDIS_SERVICE_PORT}:6379"
Cliftonz marked this conversation as resolved.
Show resolved Hide resolved
healthcheck:
test: "bash -c 'redis-cli ping'"
retries: 5
Expand Down
19 changes: 0 additions & 19 deletions docker/local/development/redis-sentinel/Dockerfile

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions docker/local/development/redis-sentinel/sentinel.conf

This file was deleted.

5 changes: 0 additions & 5 deletions docker/local/development/redis/redis.conf

This file was deleted.

18 changes: 0 additions & 18 deletions docker/local/docker-compose.localstack.yml

This file was deleted.

Loading