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

Add Traefik config to mosip-api and amend compose config for e-signet mock #4

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
42 changes: 38 additions & 4 deletions infrastructure/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1019,16 +1019,33 @@ services:
- node.labels.data1 == true

mosip-api:
image: ghcr.io/opencrvs/mosip:f4fbde3
image: ghcr.io/opencrvs/mosip-api:${MOSIP_API_VERSION:-}
environment:
- NODE_ENV=production
- MOSIP_BIRTH_WEBHOOK_URL=http://mosip-mock:20240/webhooks/opencrvs/birth
- MOSIP_DEATH_WEBHOOK_URL=http://mosip-mock:20240/webhooks/opencrvs/death
- OPENCRVS_GRAPHQL_GATEWAY_URL=http://gateway:7070/graphql
- LOCALE=en
- ESIGNET_USERINFO_URL=${ESIGNET_USERINFO_URL:-}
- ESIGNET_TOKEN_URL=${ESIGNET_TOKEN_URL:-}
- OIDP_CLIENT_PRIVATE_KEY=${OIDP_CLIENT_PRIVATE_KEY:-}
deploy:
replicas: 1
labels:
- 'traefik.enable=false'
- 'traefik.enable=true'
- 'traefik.http.routers.mosip-api.rule=Host(`mosip-api.{{hostname}}`)'
- 'traefik.http.services.mosip-api.loadbalancer.server.port=20260'
- 'traefik.http.routers.mosip-api.tls=true'
- 'traefik.http.routers.mosip-api.tls.certresolver=certResolver'
- 'traefik.http.routers.mosip-api.entrypoints=web,websecure'
- 'traefik.http.routers.mosip-api.middlewares=gzip-compression'
- 'traefik.docker.network=opencrvs_overlay_net'
- 'traefik.http.middlewares.mosip-api.headers.customresponseheaders.Pragma=no-cache'
- 'traefik.http.middlewares.mosip-api.headers.customresponseheaders.Cache-control=no-store'
- 'traefik.http.middlewares.mosip-api.headers.customresponseheaders.X-Robots-Tag=none'
- 'traefik.http.middlewares.mosip-api.headers.stsseconds=31536000'
- 'traefik.http.middlewares.mosip-api.headers.stsincludesubdomains=true'
- 'traefik.http.middlewares.mosip-api.headers.stspreload=true'
networks:
- overlay_net
logging:
Expand All @@ -1038,10 +1055,10 @@ services:
tag: 'mosip-api'

mosip-mock:
image: ghcr.io/opencrvs/mosip-mock:f4fbde3
image: ghcr.io/opencrvs/mosip-mock:${MOSIP_API_VERSION:-}
environment:
- NODE_ENV=production
- OPENCRVS_MOSIP_SERVER_URL=http://mosip-api:2024/webhooks/mosip
- OPENCRVS_MOSIP_SERVER_URL=https://mosip-api.{{hostname}}/webhooks/mosip
- SENDER_EMAIL_ADDRESS=${SENDER_EMAIL_ADDRESS:-}
- ALERT_EMAIL=${ALERT_EMAIL:-}
- SMTP_HOST=${SMTP_HOST:-}
Expand All @@ -1061,6 +1078,23 @@ services:
gelf-address: 'udp://127.0.0.1:12201'
tag: 'mosip-mock'

esignet-mock:
image: ghcr.io/opencrvs/esignet-mock:${MOSIP_API_VERSION:-}
environment:
- NODE_ENV=production
- CLIENT_URL=http://mosip-api:2024/webhooks/mosip
deploy:
replicas: 1
labels:
- 'traefik.enable=false'
networks:
- overlay_net
logging:
driver: gelf
options:
gelf-address: 'udp://127.0.0.1:12201'
tag: 'esignet-mock'

secrets:
jwt-public-key.{{ts}}:
external: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@opencrvs/mosip": "^1.7.0-alpha.2",
"@opencrvs/mosip": "^1.7.0-alpha.7",
"@opencrvs/toolkit": "0.0.6-events",
"@types/chalk": "^2.2.0",
"@types/csv2json": "^1.4.0",
Expand Down
Loading