-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from lacchain/didCreation
Did creation
- Loading branch information
Showing
37 changed files
with
2,082 additions
and
24 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
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
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,58 @@ | ||
version: '3' | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
ports: | ||
- '${EXPOSED_CONTAINER_TYPEORM_PORT}:${TYPEORM_PORT}' | ||
environment: | ||
POSTGRES_PASSWORD: ${TYPEORM_PASSWORD} | ||
volumes: | ||
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql | ||
networks: | ||
- backend | ||
redis: | ||
image: redis:latest | ||
command: redis-server --requirepass ${REDIS_PASSWORD} | ||
ports: | ||
- '${EXPOSED_CONTAINER_REDIS_PORT}:${REDIS_PORT}' | ||
networks: | ||
- backend | ||
node-api-base: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile.dev | ||
environment: | ||
PORT: "${PORT}" | ||
JWT_SECRET: "${JWT_SECRET}" | ||
TYPEORM_TYPE: postgres | ||
TYPEORM_HOST: postgres | ||
TYPEORM_USERNAME: postgres | ||
TYPEORM_PASSWORD: postgres | ||
TYPEORM_DATABASE: "${TYPEORM_DATABASE}" | ||
TYPEORM_PORT: "${TYPEORM_PORT}" | ||
TYPEORM_SYNCHRONIZE: "true" | ||
TYPEORM_LOGGING: "true" | ||
TYPEORM_MIGRATIONS_RUN: "${TYPEORM_MIGRATIONS_RUN}" | ||
ACCESS_TOKEN_LIFE: "${ACCESS_TOKEN_LIFE}" | ||
RATE_LIMIT_WINDOW: "${RATE_LIMIT_WINDOW}" | ||
RATE_LIMIT_MAX_REQUESTS: "${RATE_LIMIT_MAX_REQUESTS}" | ||
ports: | ||
- '${EXPOSED_CONTAINER_SERVER_PORT}:${PORT}' | ||
restart: on-failure | ||
container_name: laccpass-identity-manager | ||
depends_on: | ||
- postgres | ||
- redis | ||
links: | ||
- postgres | ||
- redis | ||
volumes: | ||
- "./src:/app/src" | ||
- /src/node_modules | ||
- ".env.dev:/app/.env.dev" | ||
networks: | ||
- backend | ||
networks: | ||
backend: | ||
name: backend | ||
external: true |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
CREATE USER docker WITH PASSWORD 'password' CREATEDB; | ||
|
||
CREATE DATABASE express_api_base_development | ||
CREATE DATABASE laccpass_identity_development | ||
WITH OWNER = docker | ||
CONNECTION LIMIT = -1; | ||
|
||
CREATE DATABASE express_api_base_test | ||
CREATE DATABASE laccpass_identity | ||
WITH OWNER = docker | ||
CONNECTION LIMIT = -1; | ||
|
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
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
Oops, something went wrong.