Revert back to using internal database for temporal
This commit is contained in:
+20
-14
@@ -165,19 +165,31 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- temporal-elasticsearch-data:/usr/share/elasticsearch/data
|
- temporal-elasticsearch-data:/usr/share/elasticsearch/data
|
||||||
|
|
||||||
|
temporal-postgresql:
|
||||||
|
container_name: temporal-postgresql
|
||||||
|
image: postgres:16
|
||||||
|
environment:
|
||||||
|
POSTGRES_PASSWORD: temporal
|
||||||
|
POSTGRES_USER: temporal
|
||||||
|
networks:
|
||||||
|
- temporal-network
|
||||||
|
expose:
|
||||||
|
- 5432
|
||||||
|
volumes:
|
||||||
|
- /var/lib/postgresql/data
|
||||||
|
|
||||||
temporal:
|
temporal:
|
||||||
container_name: temporal
|
container_name: temporal
|
||||||
restart: always
|
|
||||||
image: temporalio/auto-setup:1.28.1
|
image: temporalio/auto-setup:1.28.1
|
||||||
depends_on:
|
depends_on:
|
||||||
temporal-elasticsearch:
|
- temporal-postgresql
|
||||||
condition: service_healthy
|
- temporal-elasticsearch
|
||||||
environment:
|
environment:
|
||||||
- DB=${TEMPORAL_DB}
|
- DB=postgres12
|
||||||
- DB_PORT=${TEMPORAL_DB_PORT}
|
- DB_PORT=5432
|
||||||
- POSTGRES_USER=${TEMPORAL_DB_USER}
|
- POSTGRES_USER=temporal
|
||||||
- POSTGRES_PWD=${TEMPORAL_DB_PWD}
|
- POSTGRES_PWD=temporal
|
||||||
- POSTGRES_SEEDS=${TEMPORAL_DB_SEEDS}
|
- POSTGRES_SEEDS=temporal-postgresql
|
||||||
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
|
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
|
||||||
- ENABLE_ES=true
|
- ENABLE_ES=true
|
||||||
- ES_SEEDS=temporal-elasticsearch
|
- ES_SEEDS=temporal-elasticsearch
|
||||||
@@ -185,12 +197,6 @@ services:
|
|||||||
- TEMPORAL_NAMESPACE=default
|
- TEMPORAL_NAMESPACE=default
|
||||||
networks:
|
networks:
|
||||||
- temporal-network
|
- temporal-network
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 10
|
|
||||||
start_period: 30s
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
|
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user