feat(docs): Unify path in cdash
[csit.git] / csit.infra.dash / docker-compose.yaml
index e2259b8..d494d52 100644 (file)
@@ -1,35 +1,16 @@
 version: "3.7"
 services:
-  dash:
+  cdash:
     build: "."
-    command: "uwsgi --ini app.ini --workers 1"
-    depends_on:
-      - "minio"
+    command: "uwsgi --ini app.ini"
     environment:
-      AWS_ACCESS_KEY_ID: ""
-      AWS_SECRET_ACCESS_KEY: ""
+      FLASK_DEBUG: 1
+      FLASK_ENV: "development"
+    mem_limit: "6g"
     ports:
-      - "5000"
-    mem_limit: "4g"
+      - "5000:5000"
+    user: "${UID}:${GID}"
     volumes:
-      - "${PWD}/app/:/app"
-      - "${PWD}/../resources/libraries/python/jumpavg/:/app/cdash/jumpavg"
+      - "${PWD}/app/:/var/app/current"
+      - "${PWD}/../resources/libraries/python/jumpavg/:/var/app/current/cdash/jumpavg"
       - "${HOME}/.aws:/.aws"
-  minio:
-    image: "quay.io/minio/minio:RELEASE.2022-11-08T05-27-07Z"
-    command: server --console-address ":9001" /data
-    expose:
-      - "9000"
-      - "9001"
-    environment:
-      MINIO_ROOT_USER: "minioadmin"
-      MINIO_ROOT_PASSWORD: "minioadmin"
-    healthcheck:
-      test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
-      interval: "30s"
-      timeout: "20s"
-      retries: 3
-    volumes:
-      - "data:/data"
-volumes:
-  data:
\ No newline at end of file