Skip to content

Commit

Permalink
fix: changes suggested by brian for circleci file
Browse files Browse the repository at this point in the history
Signed-off-by: Brent Hoover <[email protected]>
  • Loading branch information
brent-hoover authored and vanpho93 committed May 19, 2023
1 parent d000ff9 commit ead06a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions apps/reaction/.env.example
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions docker-compose.circleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,13 @@ services:
interval: 10s
start_period: 30s

redis:
image: redis:7
networks:
- default
- reaction
ports:
- "6379:6379"

volumes:
mongo-db4:
2 changes: 1 addition & 1 deletion packages/api-plugin-bull-queue/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit ead06a1

Please sign in to comment.