Alexey Kim 1 rok pred
rodič
commit
44eca36fe2
1 zmenil súbory, kde vykonal 27 pridanie a 0 odobranie
  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