diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 1b5203a..bc713f4 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -11,3 +11,70 @@ services: - 27017:27017 volumes: - ./.mongo:/data/db + elasticsearch: + container_name: temporal-elasticsearch + environment: + - cluster.routing.allocation.disk.threshold_enabled=true + - cluster.routing.allocation.disk.watermark.low=512mb + - cluster.routing.allocation.disk.watermark.high=256mb + - cluster.routing.allocation.disk.watermark.flood_stage=128mb + - discovery.type=single-node + - ES_JAVA_OPTS=-Xms256m -Xmx256m + - xpack.security.enabled=false + image: elasticsearch:${ELASTICSEARCH_VERSION} + expose: + - 9200 + volumes: + - /var/lib/elasticsearch/data + postgresql: + container_name: temporal-postgresql + environment: + POSTGRES_PASSWORD: temporal + POSTGRES_USER: temporal + image: postgres:${POSTGRESQL_VERSION} + expose: + - 5432 + volumes: + - /var/lib/postgresql/data + temporal: + container_name: temporal + depends_on: + - postgresql + - elasticsearch + environment: + - DB=postgresql + - DB_PORT=5432 + - POSTGRES_USER=temporal + - POSTGRES_PWD=temporal + - POSTGRES_SEEDS=postgresql + - DYNAMIC_CONFIG_FILE_PATH=config/temporal.yaml + - ENABLE_ES=true + - ES_SEEDS=elasticsearch + - ES_VERSION=v7 + image: temporalio/auto-setup:${TEMPORAL_VERSION} + ports: + - 7233:7233 + labels: + kompose.volume.type: configMap + volumes: + - ./temporal.yml:/etc/temporal/config/temporal.yaml + temporal-admin-tools: + container_name: temporal-admin-tools + depends_on: + - temporal + environment: + - TEMPORAL_ADDRESS=temporal:7233 + - TEMPORAL_CLI_ADDRESS=temporal:7233 + image: temporalio/admin-tools:${TEMPORAL_VERSION} + stdin_open: true + tty: true + temporal-ui: + container_name: temporal-ui + depends_on: + - temporal + environment: + - TEMPORAL_ADDRESS=temporal:7233 + - TEMPORAL_CORS_ORIGINS=http://localhost:3000 + image: temporalio/ui:${TEMPORAL_UI_VERSION} + ports: + - 8080:8080