forked from vdesabou/kafka-docker-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.plaintext.yml
executable file
·66 lines (62 loc) · 1.76 KB
/
docker-compose.plaintext.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
---
version: '3.5'
services:
connect:
volumes:
- ../../connect/connect-minio-s3-sink/credentials:/root/.aws/credentials:ro
environment:
CONNECT_PLUGIN_PATH: /usr/share/confluent-hub-components/confluentinc-kafka-connect-s3
minio:
image: minio/minio
hostname: minio
container_name: minio
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
MINIO_SECRET_KEY: wJalrXUtnFEMI7K7MDENG8bPxRfiCYEXAMPLEKEY
command: server /data
create-buckets:
image: minio/mc
hostname: create-buckets
container_name: create-buckets
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI7K7MDENG8bPxRfiCYEXAMPLEKEY;
while ! /usr/bin/mc mb myminio/mybucket; do
sleep 5
done
exit 0;
"
list-buckets:
image: minio/mc
hostname: list-buckets
container_name: list-buckets
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI7K7MDENG8bPxRfiCYEXAMPLEKEY;
while ! /usr/bin/mc ls -r myminio/mybucket; do
sleep 5
done
exit 0;
"
copy-files:
image: minio/mc
hostname: copy-files
container_name: copy-files
depends_on:
- minio
volumes:
- /tmp:/tmp
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI7K7MDENG8bPxRfiCYEXAMPLEKEY;
while ! /usr/bin/mc cp myminio/mybucket/topics/minio_topic/partition\=0/minio_topic+0+0000000000.avro /tmp/; do
sleep 5
done
exit 0;
"