-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.minio.yml
90 lines (81 loc) · 2.21 KB
/
docker-compose.minio.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3.6'
services:
twc-mongo:
image: mongo:4.2
volumes:
- mongodata:/data/db
ports:
- "27017:27017"
twc-director:
image: agoldis/sorry-cypress-director:latest
environment:
DASHBOARD_URL: http://localhost:8888
EXECUTION_DRIVER: '../execution/mongo/driver'
MONGODB_URI: 'mongodb://twc-mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
SCREENSHOTS_DRIVER: '../screenshots/minio.driver'
MINIO_ACCESS_KEY: 'MW32h3gd6HvjBEgTRx'
MINIO_SECRET_KEY: 't6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7'
MINIO_ENDPOINT: 'twc-storage'
MINIO_URL: 'http://localhost'
MINIO_PORT: '9000'
MINIO_USESSL: 'false'
MINIO_BUCKET: sorry-cypress
ports:
- "1234:1234"
depends_on:
- twc-mongo
- twc-storage
twc-api:
image: agoldis/sorry-cypress-api:latest
environment:
MONGODB_URI: 'mongodb://twc-mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
ports:
- "4000:4000"
depends_on:
- twc-mongo
twc-dashboard:
image: agoldis/sorry-cypress-dashboard:latest
environment:
GRAPHQL_SCHEMA_URL: http://localhost:4000
GRAPHQL_CLIENT_CREDENTIALS: ''
PORT: 8888
CI_URL: ''
ports:
- "8888:8888"
depends_on:
- twc-mongo
- twc-api
twc-storage:
image: minio/minio
hostname: 'twc-storage'
environment:
MINIO_ACCESS_KEY: 'MW32h3gd6HvjBEgTRx'
MINIO_SECRET_KEY: 't6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7'
volumes:
- ./data/data-minio-cypress:/data
command: server /data
ports:
- "9000:9000"
# twc-sonarqube:
# image: sonarqube:lts
# hostname: 'twc-sonarqube'
# ports:
# - "9001:9000"
twc-createbuckets:
image: minio/mc
depends_on:
- twc-storage
entrypoint: >
/bin/sh -c "
sleep 3;
/usr/bin/mc config host add myminio http://twc-storage:9000 MW32h3gd6HvjBEgTRx t6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7;
/usr/bin/mc rm -r --dangerous --force myminio/sorry-cypress;
/usr/bin/mc mb myminio/sorry-cypress;
/usr/bin/mc policy set download myminio/sorry-cypress;
/usr/bin/mc policy set public myminio/sorry-cypress;
exit 0;
"
volumes:
mongodata: