-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
91 lines (84 loc) · 2.52 KB
/
docker-compose.yaml
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
91
version: '3.6'
# Replace each <mongo-user> with the desired username
# Replace each <mongo-pass> with the desired password
# Replace each <minio-ip-address> with the publicly available ip address or url without http(s)
# Replace <graphql-ip-address> with the publicly available ip address or url without http(s)
services:
mongo:
image: mongo:4.4
environment:
MONGO_INITDB_ROOT_USERNAME: 'admin'
MONGO_INITDB_ROOT_PASSWORD: 'admin'
volumes:
- ./data/data-mongo-cypress:/data/db
ports:
- 27017:27017
director:
image: agoldis/sorry-cypress-director:latest
environment:
DASHBOARD_URL: http://localhost:8080
EXECUTION_DRIVER: '../execution/mongo/driver'
MONGODB_URI: 'mongodb://admin:admin@mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
SCREENSHOTS_DRIVER: '../screenshots/minio.driver'
GITLAB_JOB_RETRIES: 'false'
MINIO_ACCESS_KEY: 'admin12345'
MINIO_SECRET_KEY: 'admin12345'
MINIO_ENDPOINT: '192.168.0.114'
MINIO_URL: 'http://192.168.0.114'
MINIO_PORT: '9000'
MINIO_USESSL: 'false'
MINIO_BUCKET: sorry-cypress
PROBE_LOGGER: "false"
ports:
- 1234:1234
- 9000:9000
- 9090:9090
depends_on:
- mongo
api:
image: agoldis/sorry-cypress-api:latest
environment:
MONGODB_URI: 'mongodb://admin:admin@mongo:27017'
MONGODB_DATABASE: 'sorry-cypress'
APOLLO_PLAYGROUND: 'false'
ports:
- 4000:4000
depends_on:
- mongo
dashboard:
image: agoldis/sorry-cypress-dashboard:latest
environment:
GRAPHQL_SCHEMA_URL: http://192.168.0.114:4000
GRAPHQL_CLIENT_CREDENTIALS: ''
PORT: 8080
CI_URL: ''
ports:
- 8080:8080
depends_on:
- mongo
- api
storage:
image: minio/minio
network_mode: service:director
environment:
MINIO_ROOT_USER: 'admin12345'
MINIO_ROOT_PASSWORD: 'admin12345'
volumes:
- ./data/data-minio-cypress:/data
command: minio server --console-address ":9090" /data
createbuckets:
image: minio/mc
network_mode: service:director
depends_on:
- storage
entrypoint: >
/bin/sh -c "
sleep 3;
/usr/bin/mc config host add myminio http://localhost:9000 admin12345 admin12345;
/usr/bin/mc rm -r --dangerous --force --debug myminio/sorry-cypress;
/usr/bin/mc mb myminio/sorry-cypress;
/usr/bin/mc anonymous set download myminio/sorry-cypress;
/usr/bin/mc anonymous set public myminio/sorry-cypress;
exit 0;
"