diff --git a/.circleci/config.yml b/.circleci/config.yml index 0cb19d1c1f8..e5b2be30cc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -195,6 +195,7 @@ jobs: echo "ROOT_URL=http://localhost:3000" >> .env echo "STORE_URL=http://localhost:4000" >> .env echo "STRIPE_API_KEY=YOUR_PRIVATE_STRIPE_API_KEY" >> .env + echo "REDIS_SERVER=redis://127.0.0.1:6379" >> .env - run: name: Create reaction.localhost network command: docker network create "reaction.localhost" || true diff --git a/apps/reaction/.env.example b/apps/reaction/.env.example index ddc2dc0205a..5706b99203b 100644 --- a/apps/reaction/.env.example +++ b/apps/reaction/.env.example @@ -1,3 +1,5 @@ MONGO_URL=mongodb://mongo.reaction.localhost:27017/reaction ROOT_URL=http://localhost:3000 STRIPE_API_KEY=YOUR_PRIVATE_STRIPE_API_KEY +REDIS_SERVER:redis://127.0.0.1:6379 +MAIL_URL:smtp://localhost:1025 diff --git a/docker-compose.circleci.yml b/docker-compose.circleci.yml index b8873e57e5e..2e39bf6160c 100644 --- a/docker-compose.circleci.yml +++ b/docker-compose.circleci.yml @@ -39,5 +39,13 @@ services: interval: 10s start_period: 30s + redis: + image: redis:7 + networks: + - default + - reaction + ports: + - "6379:6379" + volumes: mongo-db4: diff --git a/packages/api-plugin-bull-queue/src/config.js b/packages/api-plugin-bull-queue/src/config.js index 8b0c2dede52..6e52cdf2456 100644 --- a/packages/api-plugin-bull-queue/src/config.js +++ b/packages/api-plugin-bull-queue/src/config.js @@ -2,7 +2,7 @@ import envalid from "envalid"; export default envalid.cleanEnv(process.env, { REACTION_WORKERS_ENABLED: envalid.bool({ default: true }), - REDIS_SERVER: envalid.str({ default: "redis://127.0.0.1:6379" }), + REDIS_SERVER: envalid.str(), JOBS_SERVER_REMOVE_ON_COMPLETE: envalid.bool({ default: false }), JOBS_SERVER_REMOVE_ON_FAIL: envalid.bool({ default: false }), JOBS_SERVER_DEFAULT_ATTEMPTS: envalid.num({ default: 5 }),