forked from sorry-cypress/sorry-cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.minio.yml
85 lines (76 loc) · 2.07 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
version: '3.6'
services:
mongo:
image: mongo:4.2
volumes:
- ./data/data-mongo-cypress:/data/db
redis:
image: redis:alpine
director:
image: agoldis/sorry-cypress-director:latest
environment:
DASHBOARD_URL: http://localhost:8080
EXECUTION_DRIVER: '../execution/mongo/driver'
MONGODB_URI: 'mongodb://mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
SCREENSHOTS_DRIVER: '../screenshots/minio.driver'
MINIO_ACCESS_KEY: 'MW32h3gd6HvjBEgTRx'
MINIO_SECRET_KEY: 't6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7'
MINIO_ENDPOINT: 'storage'
MINIO_URL: 'http://localhost'
MINIO_PORT: '9000'
MINIO_USESSL: 'false'
MINIO_BUCKET: sorry-cypress
REDIS_URI: 'redis://redis:6379'
ports:
- 1234:1234
depends_on:
- mongo
- storage
- redis
api:
image: agoldis/sorry-cypress-api:latest
environment:
MONGODB_URI: 'mongodb://mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
ports:
- 4000:4000
depends_on:
- mongo
dashboard:
image: agoldis/sorry-cypress-dashboard:latest
environment:
GRAPHQL_SCHEMA_URL: http://localhost:4000
GRAPHQL_CLIENT_CREDENTIALS: ''
PORT: 8080
CI_URL: ''
ports:
- 8080:8080
depends_on:
- mongo
- api
storage:
image: minio/minio
hostname: 'storage'
environment:
MINIO_ACCESS_KEY: 'MW32h3gd6HvjBEgTRx'
MINIO_SECRET_KEY: 't6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7'
volumes:
- ./data/data-minio-cypress:/data
command: server /data
ports:
- 9000:9000
createbuckets:
image: minio/mc
depends_on:
- storage
entrypoint: >
/bin/sh -c "
sleep 3;
/usr/bin/mc config host add myminio http://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;
"