浏览代码

Zitadel

- draft
Alexey Kim 1 年之前
父节点
当前提交
44eca36fe2
共有 1 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      devops/docker-compose.yaml

+ 27 - 0
devops/docker-compose.yaml

@@ -33,6 +33,33 @@ services:
       - ./migrations:/usr/local/etc/gotrue/migrations
     ports:
       - "9999:9999"
+    command: ["multi"]
+
+  zitadel:
+    restart: 'unless-stopped'
+    image: 'ghcr.io/zitadel/zitadel:latest'
+    command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
+    environment:
+      - 'ZITADEL_DATABASE_COCKROACH_HOST=crdb'
+      - 'ZITADEL_EXTERNALSECURE=false'
+    depends_on:
+      crdb:
+        condition: 'service_healthy'
+    ports:
+      - '8080:8080'
+
+  crdb:
+    restart: 'unless-stopped'
+    image: 'cockroachdb/cockroach:v22.2.2'
+    command: 'start-single-node --insecure'
+    healthcheck:
+      test: [ "CMD", "curl", "-f", "http://localhost:8080/health?ready=1" ]
+      interval: '10s'
+      timeout: '30s'
+      retries: 5
+    ports:
+      - '8081:8080'
+      - '26257:26257'
 
   router:
     container_name: router