daruthe 11 mesiacov pred
rodič
commit
3f9bee5e10
1 zmenil súbory, kde vykonal 40 pridanie a 0 odobranie
  1. 40 0
      nocodb/docker-compose.yml

+ 40 - 0
nocodb/docker-compose.yml

@@ -0,0 +1,40 @@
+version: '2.1'
+services: 
+  nocodb: 
+    depends_on: 
+      root_db: 
+        condition: service_healthy
+    environment: 
+      NC_DB: "pg://root_db:5432?u=postgres&p=password&d=root_db"
+    networks:
+      - asgard 
+    image: "nocodb/nocodb:latest"
+    ports: 
+      - "9012:8080"
+    restart: unless-stopped
+    volumes: 
+      - "./nc_data:/usr/app/data"
+  root_db: 
+    environment: 
+      POSTGRES_DB: root_db
+      POSTGRES_PASSWORD: password
+      POSTGRES_USER: postgres
+    healthcheck: 
+      interval: 10s
+      retries: 10
+      test: "pg_isready -U \"$$POSTGRES_USER\" -d \"$$POSTGRES_DB\""
+      timeout: 2s
+    image: postgres:16.6
+    restart: unless-stopped
+    volumes: 
+      - "./db_data:/var/lib/postgresql/data"
+    networks:
+      - asgard      
+volumes: 
+  db_data: {}
+  nc_data: {}
+
+networks:
+  asgard:
+    name: asgard
+    external: true