blob: 96b4ccec8277f51d830bbb36cb1aef94486c54c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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
|