doc.dev1x.org

temporalite

temporaliteとは

インストール

プロジェクト構成

.
├── .env
├── Dockerfile
├── docker-compose.yaml
└── README.md

Dockerfile

FROM golang:1.18

RUN go install github.com/temporalio/temporalite/cmd/temporalite@latest

docker-compose.yaml

version: '3.8'
services:
  temporalite:
    env_file:
      - .env
    build:
      context: .
      dockerfile: Dockerfile
    command: ["temporalite", "start", "--filename", "data.db", "--ip", "0.0.0.0", "--port", "7233", "--ui-port", "8233", "--namespace", "default"]
    tty: true
    ports:
      - 7233:7233
      - 8233:8233
  admin:
    image: temporalio/admin-tools
    environment:
      - TEMPORAL_CLI_ADDRESS=temporalite:7233
    env_file:
      - .env
    entrypoint: ["tctl"]
    tty: true

起動

docker compose up -d

参考資料