Skip to content

Instantly share code, notes, and snippets.

@cnotv
Last active August 2, 2022 11:44
Show Gist options
  • Save cnotv/dc59990781a99284a9a33b9ee330e3bc to your computer and use it in GitHub Desktop.
Save cnotv/dc59990781a99284a9a33b9ee330e3bc to your computer and use it in GitHub Desktop.
Sorry Crypress Minio config DO
version: '3.6'
services:
mongo:
image: mongo:4.2
volumes:
- ./data/data-mongo-cypress:/data/db
ports:
- 27017:27017
director:
image: agoldis/sorry-cypress-director:latest
environment:
DASHBOARD_URL: http://139.59.134.103: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: '139.59.134.103'
MINIO_URL: 'http://139.59.134.103'
MINIO_PORT: '9000'
MINIO_USESSL: 'false'
MINIO_BUCKET: sorry-cypress
ports:
- 1234:1234
- 9000:9000
depends_on:
- mongo
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://139.59.134.103: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_ACCESS_KEY: 'MW32h3gd6HvjBEgTRx'
MINIO_SECRET_KEY: 't6NgQWUcEyG2AzaDCVkN6sbWcvDCVkN6sGiZ7'
volumes:
- ./data/data-minio-cypress:/data
command: server /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://139.59.134.103: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;
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment