Skip to content

Commit

Permalink
Production Overrides (#14)
Browse files Browse the repository at this point in the history
* Remove hapi ingress from default dev config

* Remove fhir server from ingress network, by default

* Add prod override file

* Update default postgres version
  • Loading branch information
ivan-c authored May 26, 2023
1 parent 7380e6e commit c2eab2d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 32 deletions.
3 changes: 0 additions & 3 deletions dev/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ COMPOSE_PROJECT_NAME=
# MESSAGING_IMAGE_TAG=override-tag-name
# MESSAGINGSERVICE_IMAGE_TAG=override-tag-name

# Uncomment for deploys with traefik-managed ingress
# COMPOSE_FILE=docker-compose.yaml:docker-compose.ingress.yaml

# docker-compose development overrides; uncomment to enable
# COMPOSE_FILE=docker-compose.yaml:docker-compose.ingress.yaml:docker-compose.dev.femr.yaml:docker-compose.dev.fhirwall.yaml:docker-compose.dev.messagingservice.yaml

Expand Down
19 changes: 0 additions & 19 deletions dev/docker-compose.ingress.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions dev/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
version: "3.7"
services:
db:
restart: unless-stopped

femr:
restart: unless-stopped

fhir:
restart: unless-stopped

fhirwall:
restart: unless-stopped

keycloak:
restart: unless-stopped

logs:
restart: unless-stopped

redis:
restart: unless-stopped

enrollment:
restart: unless-stopped

messaging:
restart: unless-stopped

messagingservice:
restart: unless-stopped
11 changes: 1 addition & 10 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "3.7"
services:
db:
image: postgres:${POSTGRES_IMAGE_TAG:-12}
image: postgres:${POSTGRES_IMAGE_TAG:-15}
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down Expand Up @@ -76,24 +76,15 @@ services:
# make URLs relative to fEMR for pagination
# TODO remove when fEMR can rewrite URLs
hapi.fhir.server_address: 'https://femr.${BASE_DOMAIN:-localtest.me}/fhir/'
# expose HAPI to internet - remove entire `labels` section if unwanted
labels:
- "traefik.enable=true"
- "traefik.http.routers.fhir-${COMPOSE_PROJECT_NAME}.rule=Host(`fhir.${BASE_DOMAIN:-localtest.me}`)"
- "traefik.http.routers.fhir-${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.routers.fhir-${COMPOSE_PROJECT_NAME}.tls=true"
- "traefik.http.routers.fhir-${COMPOSE_PROJECT_NAME}.tls.certresolver=letsencrypt"
volumes:
- "./config/hapi/application.yaml:/opt/application.yaml:ro"
depends_on:
- db
networks:
ingress:
internal:
aliases:
- fhir-internal


fhirwall:
image: ghcr.io/uwcirg/jwt-proxy:${PROXY_IMAGE_TAG:-latest}
env_file:
Expand Down

0 comments on commit c2eab2d

Please sign in to comment.