aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/docker-compose-local.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2022-11-16 14:36:35 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-11-23 13:41:06 +0000
commitd9ff3e50ecf60dbc1255f5d4b11b9111c43cc8ef (patch)
tree61c4c75c690006021fdff70c5819f394b87e1e90 /csit.infra.dash/docker-compose-local.yaml
parent20b64f8ed040b3b25c37d71fc8feed28b9a557fd (diff)
feat(cdash): Local data
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I25aa1d124c0a4fd039211054e599e542294a4b5d
Diffstat (limited to 'csit.infra.dash/docker-compose-local.yaml')
-rw-r--r--csit.infra.dash/docker-compose-local.yaml74
1 files changed, 74 insertions, 0 deletions
diff --git a/csit.infra.dash/docker-compose-local.yaml b/csit.infra.dash/docker-compose-local.yaml
new file mode 100644
index 0000000000..96b4ccec82
--- /dev/null
+++ b/csit.infra.dash/docker-compose-local.yaml
@@ -0,0 +1,74 @@
+version: "3.7"
+services:
+ cdash:
+ build: "."
+ command: "uwsgi --ini app.ini --workers 4"
+ depends_on:
+ - "reverse"
+ environment:
+ FLASK_DEBUG: 1
+ FLASK_ENV: "development"
+ AWS_CA_BUNDLE: "/CA.pem"
+ AWS_ACCESS_KEY_ID: "ULor0DynBBhGccZI"
+ AWS_SECRET_ACCESS_KEY: "6HFce4poYcQPTHExggxqTnQnd4ATlVvH"
+ networks:
+ - "lntk"
+ ports:
+ - "5000:5000"
+ user: "${UID}:${GID}"
+ volumes:
+ - "${PWD}/app/:/app"
+ - "${PWD}/../resources/libraries/python/jumpavg/:/app/cdash/jumpavg"
+ - "${PWD}/nginx/ssl/CA.pem:/CA.pem"
+ minio:
+ image: "quay.io/minio/minio:latest"
+ command: server --console-address ":9001" /data
+ environment:
+ MINIO_ROOT_USER: "minioadmin"
+ MINIO_ROOT_PASSWORD: "minioadmin"
+ healthcheck:
+ test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
+ interval: "30s"
+ timeout: "5s"
+ retries: 3
+ networks:
+ - "lntk"
+ ports:
+ - "9001:9001"
+ volumes:
+ - "data:/data"
+ mc:
+ image: "quay.io/minio/mc:latest"
+ depends_on:
+ - "minio"
+ entrypoint: >
+ /bin/sh -c "
+ /usr/bin/mc config host rm local;
+ /usr/bin/mc config host add --quiet --api s3v4 local http://minio:9000 minioadmin minioadmin;
+ /usr/bin/mc mb --quiet --ignore-existing local/fdio-docs-s3-cloudfront-index/;
+ #/usr/bin/mc cp --recursive /data/ local/fdio-docs-s3-cloudfront-index/;
+ "
+ networks:
+ - "lntk"
+ volumes:
+ - type: "bind"
+ source: "${HOME}/fdio-docs-s3-cloudfront-index/"
+ target: "/data/"
+ reverse:
+ image: "nginx:latest"
+ depends_on:
+ - "minio"
+ - "mc"
+ networks:
+ lntk:
+ aliases:
+ - "s3.amazonaws.com"
+ - "fdio-docs-s3-cloudfront-index.s3.amazonaws.com"
+ volumes:
+ - "./nginx/conf.d:/etc/nginx/conf.d"
+ - "./nginx/ssl:/etc/nginx/certs"
+volumes:
+ data:
+networks:
+ lntk:
+ driver: bridge \ No newline at end of file