Skip to content

Commit

Permalink
added initial files for qc
Browse files Browse the repository at this point in the history
  • Loading branch information
shanice-skylight committed Jan 30, 2025
1 parent eac71d9 commit 411b3d2
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 4 deletions.
56 changes: 56 additions & 0 deletions docker/query-connector/docker-compose.yml
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.
6 changes: 3 additions & 3 deletions packer/ubuntu-server/http/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ autoinstall:
password: '$6$BY7tlmmh0KhsyCdF$mqL6Ud5FS645ylyOUT.qoim/ZcHrfLdE6vgDqAabDGyoj7LCV4Kpskj8POMmf7MmIcpVho0xc12rdstjjjW100'
hostname: ubuntu-server

ssh:
allow-pw: yes
install-server: true
# Uncomment the block below to force interactive configuration on first run.
# interactive-sections:
# - network

locale: en_US
keyboard:
Expand Down
2 changes: 1 addition & 1 deletion packer/ubuntu-server/scripts/provision.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd ~
mkdir dev
cd dev
git clone https://github.com/CDCgov/dibbs-vm.git
cd dibbs-vm/docker/ecr-viewer
cd dibbs-vm/docker/query-connector

# Trigger initial docker compose to pull image data
docker compose up -d

0 comments on commit 411b3d2

Please sign in to comment.