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

feat(sandbox): scheduler-example #183

Merged
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
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