-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (76 loc) · 2.09 KB
/
docker-compose.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
version: '3'
networks:
default:
name: wat
services:
sqs:
container_name: fc_sqs
image: roribio16/alpine-sqs
ports:
- '9324:9324'
- '9325:9325'
volumes:
- ./sqs-emulator:/opt/custom
cache:
container_name: fc_redis
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/testing
minio:
container_name: fc_s3
image: minio/minio
environment:
- MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE
- MINIO_ROOT_PASSWORD=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
command: server /data --console-address ":9001"
ports:
- '9000:9000'
- '9001:9001'
# configure minio on startup (create buckets, etc)
# inspired by https://github.com/minio/minio/issues/4769
# and https://gist.github.com/haxoza/22afe7cc4a9da7e8bdc09aad393a99cc
minio_init:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add minio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY;
/usr/bin/mc mb minio/configs;
/usr/bin/mc policy set public minio/configs;
/usr/bin/mc cp --recursive /configs/ minio/configs/ ;
exit 0;
"
volumes:
- ./configs:/configs/data/fragilitycurveplugin
fragilitycurveplugin:
container_name: fc
depends_on:
- minio_init
- cache
build: .
restart: always
environment:
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- AWS_DEFAULT_REGION=us-east-1
- AWS_S3_REGION=us-east-1
- AWS_S3_BUCKET=configs
- S3_MOCK=True
- S3_BUCKET=configs
- S3_ENDPOINT=minio:9000
- S3_DISABLE_SSL=True
- S3_FORCE_PATH_STYLE=True
- REDIS_HOST=cache
- REDIS_PORT=6379
- REDIS_PASSWORD=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
- SQS_ENDPOINT=http://sqs:9324
volumes:
- ./:/workspaces
volumes:
cache:
driver: local