-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: EOF standard * New: Create multiple docker-compose to manage different configurations * New:Adding dev containers configurations * Update: Documentation * New: Adding github codespaces --------- Co-authored-by: Genesis Alvarez <[email protected]> Co-authored-by: Marluan Espiritusanto <[email protected]>
- Loading branch information
1 parent
2f26c23
commit f71e957
Showing
5 changed files
with
203 additions
and
5 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,78 @@ | ||
{ | ||
"name": "Cuenta Única Ciudadana", | ||
"image": "node:lts", | ||
"hostRequirements": { | ||
"cpus": 5 | ||
}, | ||
"waitFor": "onCreateCommand", | ||
"postAttachCommand": { | ||
"server": "npm i" | ||
}, | ||
"postCreateCommand": "npm install --no-package-lock", | ||
"forwardPorts": [3000], | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
}, | ||
"secrets": { | ||
"PORT": { | ||
"description": "The port where the server will be running" | ||
}, | ||
"AMPLIFY_WEBCLIENT_ID": { | ||
"description": "The ID for the app client to be used by web applications" | ||
}, | ||
"AWS_EXPORTS_JS": { | ||
"description": "Configuration file generated by the Amplify CLI tool when you initialize an AWS Amplify project" | ||
}, | ||
"AWS_EXPORTS_JSON": { | ||
"description": "JSON file that contains configuration settings and environment variables related to AWS services within a specific project" | ||
}, | ||
"CEDULA_API": { | ||
"description": "API endpoint responsible for operations related to user identity" | ||
}, | ||
"CEDULA_API_KEY": { | ||
"description": "Authentication token or key used to access the API related to user identity" | ||
}, | ||
"CEDULA_TOKEN_API": { | ||
"description": "Authentication token used to access the API related to user identity" | ||
}, | ||
"CITIZENS_API_AUTH_KEY": { | ||
"description": "Authentication key used to access the API related to user identity" | ||
}, | ||
"ENCRYPTION_KEY": { | ||
"description": "Key used for encrypting and decrypting data" | ||
}, | ||
"JCE_PHOTO_API": { | ||
"description": "API endpoint responsible for operations related to user identity" | ||
}, | ||
"JCE_PHOTO_API_KEY": { | ||
"description": "Authentication key used to access the API related to user identity" | ||
}, | ||
"NEXT_PUBLIC_GOOGLE_ANALYTICS": { | ||
"description": "Used in Next.js applications to configure Google Analytics integration" | ||
}, | ||
"NEXT_PUBLIC_RECAPTCHA_SITE_KEY": { | ||
"description": "Site key for integrating Google reCAPTCHA into a Next.js application" | ||
}, | ||
"ORY_SDK_TOKEN": { | ||
"description": "Authentication token or access token used in conjunction with the ORY SDK" | ||
}, | ||
"ORY_SDK_URL": { | ||
"description": "URL endpoint of an ORY software development kit (SDK)" | ||
}, | ||
"PWNED_KEY": { | ||
"description": "Authentication key used to access the Have I Been Pwned (HIBP) service" | ||
}, | ||
"RECAPTHA_API_KEY": { | ||
"description": "Key used for integrating reCAPTCHA services into web applications" | ||
}, | ||
"SENTRY_AUTH_TOKEN": { | ||
"description": "Authentication token used in the context of the Sentry error monitoring and tracking platform" | ||
}, | ||
"SITE_COOKIE_KEY": { | ||
"description": "Used in web development to manage and manipulate cookies within a website or web application" | ||
} | ||
} | ||
} |
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
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,36 @@ | ||
version: '3.9' | ||
|
||
services: | ||
cuenta_unica: | ||
container_name: cuenta_unica | ||
image: node | ||
environment: | ||
- CEDULA_API | ||
- CEDULA_API_KEY | ||
- JCE_PHOTO_API | ||
- JCE_PHOTO_API_KEY | ||
- ENCRYPTION_KEY | ||
- RECAPTHA_API_KEY | ||
- RECAPTHA_PROJECT_ID | ||
- SITE_COOKIE_KEY | ||
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY | ||
- NEXT_PUBLIC_GOOGLE_ANALYTICS | ||
- CEDULA_TOKEN_API | ||
- CITIZENS_API_AUTH_KEY | ||
- ORY_SDK_URL | ||
- NEXT_PUBLIC_ORY_SDK_URL | ||
- ORY_SDK_TOKEN | ||
- NEXT_PUBLIC_API_MOCKING | ||
- LIVENESS_THRESHOLD_VALUE | ||
- LIVENESS_SIMILARIY_VALUE | ||
volumes: | ||
- .:/app | ||
ports: | ||
- 3000:3000 | ||
networks: | ||
- cuenta_unica_network | ||
tty: true | ||
|
||
networks: | ||
cuenta_unica_network: | ||
driver: bridge |
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,41 @@ | ||
version: '3.9' | ||
services: | ||
cuenta_unica: | ||
container_name: cuenta_unica | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
args: | ||
- SENTRY_ORG | ||
- SENTRY_PROJECT | ||
- SENTRY_AUTH_TOKEN | ||
- NEXT_PUBLIC_SENTRY_DSN | ||
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY | ||
restart: unless-stopped | ||
networks: | ||
- cuenta_unica_network | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
- CEDULA_API | ||
- CEDULA_API_KEY | ||
- JCE_PHOTO_API | ||
- JCE_PHOTO_API_KEY | ||
- ENCRYPTION_KEY | ||
- RECAPTHA_API_KEY | ||
- RECAPTHA_PROJECT_ID | ||
- SITE_COOKIE_KEY | ||
- NEXT_PUBLIC_RECAPTCHA_SITE_KEY | ||
- NEXT_PUBLIC_GOOGLE_ANALYTICS | ||
- CEDULA_TOKEN_API | ||
- CITIZENS_API_AUTH_KEY | ||
- ORY_SDK_URL | ||
- NEXT_PUBLIC_ORY_SDK_URL | ||
- ORY_SDK_TOKEN | ||
- NEXT_PUBLIC_API_MOCKING | ||
- LIVENESS_THRESHOLD_VALUE | ||
- LIVENESS_SIMILARIY_VALUE | ||
- SENTRY_LOG_LEVEL=debug | ||
|
||
networks: | ||
cuenta_unica_network: |