-
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.
chore: add more env vars and docker compose updates
- Loading branch information
Jan Kühnlein
committed
Feb 2, 2024
1 parent
fe1274b
commit de975ef
Showing
16 changed files
with
122 additions
and
23 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
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
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,8 +1,18 @@ | ||
import { WorkflowClient } from "@temporalio/client"; | ||
|
||
import { Connection, WorkflowClient } from "@temporalio/client"; | ||
import env from "env-var"; | ||
export const DEFAULT_TEMPORAL_QUEUE = "imports"; | ||
|
||
export const getTemporalWorkflowClient = () => { | ||
let connection: Connection; | ||
|
||
export async function getTemporalWorkflowClient() { | ||
// TODO get options from env | ||
return new WorkflowClient({}); | ||
}; | ||
if (!connection) { | ||
connection = await Connection.connect({ | ||
address: env.get("TEMPORAL_ADDRESS").default("localhost:7233").asString(), | ||
}); | ||
} | ||
return new WorkflowClient({ | ||
connection, | ||
namespace: env.get("TEMPORAL_NAMESPACE").default("default").asString(), | ||
}); | ||
} |
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,67 @@ | ||
version: "3.7" | ||
|
||
services: | ||
# STORAGE | ||
minio: | ||
extends: | ||
file: docker-compose.base.yaml | ||
service: minio | ||
environment: | ||
MINIO_ROOT_USER: ${MINIO_ROOT_USER} | ||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} | ||
volumes: | ||
- miniostorage:/data | ||
temporal-postgresql: | ||
extends: | ||
file: docker-compose.base.yaml | ||
service: temporal-postgresql | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
networks: | ||
- temporal-network | ||
volumes: | ||
- temporal-postgresql:/var/lib/postgresql/data | ||
mongodb: | ||
extends: | ||
file: docker-compose.base.yaml | ||
service: mongodb | ||
environment: | ||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USER} | ||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD} | ||
volumes: | ||
- mongodb:/data/db | ||
# TEMPORAL | ||
temporal: | ||
extends: | ||
file: docker-compose.base.yaml | ||
service: temporal | ||
networks: | ||
- temporal-network | ||
environment: | ||
- DB=postgresql | ||
- DB_PORT=5432 | ||
- POSTGRES_USER=${POSTGRES_USER} | ||
- POSTGRES_PWD=${POSTGRES_PASSWORD} | ||
- POSTGRES_SEEDS=temporal-postgresql | ||
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml | ||
temporal-ui: | ||
extends: | ||
file: docker-compose.base.yaml | ||
service: temporal-ui | ||
environment: | ||
- TEMPORAL_ADDRESS=temporal:7233 | ||
- TEMPORAL_CORS_ORIGINS=http://localhost:3000 | ||
networks: | ||
- temporal-network | ||
networks: | ||
temporal-network: | ||
driver: bridge | ||
name: temporal-network | ||
ferretdb-network: | ||
driver: bridge | ||
name: ferretdb-network | ||
volumes: | ||
miniostorage: | ||
temporal-postgresql: | ||
mongodb: |
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