-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.59 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
volumes:
kouta-elastic-data:
services:
kouta-elastic:
image: 190073735177.dkr.ecr.eu-west-1.amazonaws.com/utility/elasticsearch-kouta:8.5.2
container_name: kouta-elasticsearch
environment:
discovery.type: single-node
xpack.security.enabled: "false"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 10s
retries: 5
volumes:
- kouta-elastic-data:/usr/share/elasticsearch/data
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
elasticdump-loader:
image: docker.io/elasticdump/elasticsearch-dump:v6.110.0
depends_on:
kouta-elastic:
condition: service_healthy
volumes:
- ./kouta-external/src/test/resources/elastic_dump:/tmp
command: >
multielasticdump --direction=load --input=/tmp
--output=http://kouta-elasticsearch:9200
--includeType=data,mapping,alias,settings,template
europass-s3:
image: docker.io/localstack/localstack:s3-latest
container_name: kouta-europass-s3
ports:
- "127.0.0.1:4566:4566"
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:4566 || exit 1"]
interval: 10s
timeout: 10s
retries: 5
s3-configurator:
image: docker.io/amazon/aws-cli
command: --endpoint-url http://europass-s3:4566 s3api create-bucket --bucket europass-publish
environment:
AWS_ACCESS_KEY_ID: none
AWS_SECRET_ACCESS_KEY: none
AWS_DEFAULT_REGION: eu-west-1
depends_on:
europass-s3:
condition: service_healthy