Skip to content

Commit

Permalink
feat(sandbox): scheduler-example (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumit-tuteja authored May 5, 2021
1 parent 10aa077 commit 7f6df63
Show file tree
Hide file tree
Showing 38 changed files with 8,376 additions and 4,467 deletions.
634 changes: 2 additions & 632 deletions sandbox/auth-ms-basic-example/package-lock.json

Large diffs are not rendered by default.

534 changes: 2 additions & 532 deletions sandbox/auth-multitenant-example/package-lock.json

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion sandbox/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ x-audit-variables: &audit-variables
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog

x-scheduler-variables: &scheduler-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: scheduler_db
DB_SCHEMA: main
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DATABASE: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog


services:
auth-multitenant-example:
Expand Down Expand Up @@ -167,6 +184,21 @@ services:
- sandbox
restart: on-failure

scheduler-example:
image: sourceloop/scheduler-example
build:
context: ./scheduler-example
dockerfile: Dockerfile
ports:
- "3034:3000"
networks:
- sandbox
environment: *scheduler-variables
depends_on:
- postgres
- postgres_orchestrator


redis:
image: "redis:alpine"
ports:
Expand Down Expand Up @@ -217,7 +249,8 @@ services:
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database authentication_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database notification_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database workflow_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database audit_db'"
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database audit_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database scheduler_db'"
pgadmin:
Expand Down
Loading

0 comments on commit 7f6df63

Please sign in to comment.