-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eac71d9
commit 411b3d2
Showing
4 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
services: | ||
# PostgreSQL DB for custom query and value set storage | ||
db: | ||
image: "postgres:alpine" | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=pw | ||
- POSTGRES_DB=tefca_db | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
interval: 2s | ||
timeout: 5s | ||
retries: 20 | ||
|
||
# Keycloak for authentication | ||
keycloak: | ||
image: quay.io/keycloak/keycloak:26.0.2 | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ./keycloak:/opt/keycloak/data/import | ||
restart: always | ||
command: | ||
- start-dev | ||
- --import-realm | ||
|
||
# Next.js app with Flyway | ||
query-connector: | ||
image: ghcr.io/cdcgov/dibbs-query-connector/query-connector:latest | ||
platform: linux/amd64 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
tty: true | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- NODE_ENV=production | ||
- NODE_TLS_REJECT_UNAUTHORIZED=0 | ||
- AUTH_DISABLED=false | ||
- AUTH_SECRET="fakeauthsecretvalue9493829" | ||
- AUTH_KEYCLOAK_ISSUER=http://localhost:8080/realms/master | ||
- LOCAL_KEYCLOAK=http://localhost:8080 | ||
- NAMED_KEYCLOAK=http://keycloak:8080 | ||
- AUTH_KEYCLOAK_ID=query-connector | ||
- AUTH_KEYCLOAK_SECRET="fakeauthkeycloakvalue14452" | ||
- DATABASE_URL=postgres://postgres:pw@db:5432/tefca_db | ||
# Note: you must have a local .env file with the ERSD_API_KEY set to a key | ||
# obtained from the ERSD API at https://ersd.aimsplatform.org/#/api-keys | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
keycloak: | ||
condition: service_started |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters