-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
127 lines (117 loc) · 3.11 KB
/
docker-compose.yml
File metadata and controls
127 lines (117 loc) · 3.11 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
minio:
container_name: minio
image: minio/minio:RELEASE.2023-11-01T01-57-10Z
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_storage:/data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server --console-address ":9001" /data
networks:
- siesta-net
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
networks:
- siesta-net
kafka:
container_name: siesta-kafka
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
- "9093:9093"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: INSIDE://:9093,OUTSIDE://siesta-kafka:9092
KAFKA_LISTENERS: INSIDE://:9093,OUTSIDE://:9092
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zookeeper
networks:
- siesta-net
init-kafka:
image: confluentinc/cp-kafka:6.1.1
depends_on:
- kafka
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
# blocks until kafka is reachable
kafka-topics --bootstrap-server kafka:9093 --list
echo -e 'Creating kafka topics'
kafka-topics --bootstrap-server kafka:9093 --create --if-not-exists --topic test --replication-factor 1 --partitions 1
echo -e 'Successfully created the following topics:'
kafka-topics --bootstrap-server kafka:9093 --list
"
networks:
- siesta-net
postgres:
container_name: siesta-postgres
image: postgres:latest
environment:
POSTGRES_DB: metrics
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- siesta-net
createbuckets: #automatically creates the required bucket
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc mb myminio/siesta;
/usr/bin/mc policy download myminio/siesta;
exit 0;
"
networks:
- siesta-net
preprocess:
build:
context: .
dockerfile: dockerbase/REST.Dockerfile
ports:
- "8000:8000"
- "4040:4040"
networks:
- siesta-net
volumes:
- preprocesses:/app/pythonAPI/dbSQL
- ./experiments/input:/app/pythonAPI/uploadedfiles
environment:
s3accessKeyAws: minioadmin
s3ConnectionTimeout: 600000
s3endPointLoc: http://minio:9000
s3secretKeyAws: minioadmin
x-disabled:
send_events: #send example events in form .withTimestamp
build:
context: .
dockerfile: send_events.Dockerfile
networks:
- siesta-net
networks:
siesta-net:
name: siesta-net
# external: true
volumes:
minio_storage: {}
preprocesses: {}
postgres-data: {}