Skip to content

Commit

Permalink
Add dependenices and fix docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Apr 11, 2023
1 parent a060641 commit 047a7b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
12 changes: 11 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,18 @@ CENTRAL_USER_PASS=StrongPassword@1234
#enketo-express
ENCRYPTION_KEY=somestrongencrytionkey
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
FORM_MANAGER_BASE_URI=3006-tushar5526-workflow-vujjgbbaij1.ws-us93.gitpod.io
FORM_MANAGER_BASE_URI=3006-tushar5526-workflow-to0ynmrsh3d.ws-us93.gitpod.io

# form manager
REDIS_HOST=fm-cache
REDIS_PORT=6379

# TSDB
TSDB_POSTGRES_USER=timescaledb
TSDB_POSTGRES_PASSWORD=postgrespassword

# GQL
HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey
HASURA_GRAPHQL_JWT_SECRET={"type":"RS256","jwk_url":"http://fusionauth:9011/.well-known/jwks.json"}
HASURA_GRAPHQL_DATABASE_URL=postgres://$TSDB_POSTGRES_USER:$TSDB_POSTGRES_PASSWORD@tsdb:5432/postgres?sslmode=disable

17 changes: 10 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ services:
volumes:
- ./pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: timescaledb
POSTGRES_PASSWORD: postgrespassword
POSTGRES_USER: ${TSDB_POSTGRES_USER}
POSTGRES_PASSWORD: ${TSDB_POSTGRES_PASSWORD}

gql:
image: hasura/graphql-engine:latest
Expand All @@ -111,17 +111,18 @@ services:
- ./data/migrations:/hasura-migrations
- ./data/metadata:/hasura-metadata
depends_on:
- "tsdb"
- tsdb
- fusionauth
restart: always
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres://timescaledb:postgrespassword@tsdb:5432/postgres?sslmode=disable
- HASURA_GRAPHQL_DATABASE_URL=${HASURA_GRAPHQL_DATABASE_URL}
- HASURA_GRAPHQL_ENABLE_CONSOLE=true # set to "false" to disable console
- HASURA_GRAPHQL_DEV_MODE=true
- HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log
- HASURA_GRAPHQL_MIGRATIONS_DISABLE_TRANSACTION=true
- HASURA_GRAPHQL_CONSOLE_ASSETS_DIR=/srv/console-assets
- HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey
- HASURA_GRAPHQL_JWT_SECRET={"type":"RS256","jwk_url":"http://fusionauth:9011/.well-known/jwks.json"}
- HASURA_GRAPHQL_ADMIN_SECRET=${HASURA_GRAPHQL_ADMIN_SECRET}
- HASURA_GRAPHQL_JWT_SECRET=${HASURA_GRAPHQL_JWT_SECRET}

minio:
image: minio/minio
Expand All @@ -147,6 +148,7 @@ services:
/usr/bin/mc anonymous set public myminio/${MINIO_BUCKETNAME};
exit 0;
"
enketo-express:
image: enketo-express
build:
Expand All @@ -164,7 +166,7 @@ services:
REDIS_MAIN_PORT: 6379
REDIS_CACHE_HOST: redis_cache
REDIS_CACHE_PORT: 6379
FORM_MANAGER_BASE_URI: https://enketo-manager-ratings-tech.samagra.io/
FORM_MANAGER_BASE_URI: ${FORM_MANAGER_BASE_URI}

fm-cache:
image: redis:7
Expand All @@ -178,6 +180,7 @@ services:
depends_on:
- fm-cache
- minio
- createbuckets
ports:
- 3006:3006
environment:
Expand Down

0 comments on commit 047a7b5

Please sign in to comment.