-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
152 lines (142 loc) · 3.46 KB
/
docker-compose.yaml
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3.4"
x-common-variables: &common-variables
S3_EXTERNAL_ENDPOINT: "localhost:10002"
S3_ENDPOINT: "minio:10002"
S3_ACCESS_KEY_ID: "admin"
S3_SECRET_ACCESS_KEY: "admin123"
S3_BUCKET: "test"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "test"
POSTGRES_DB: "postgres"
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
CLICKHOUSE_ENDPOINT: "clickhouse:9000"
DATA_ACCESS_SERVICE_HOST: "data-access-service"
DATA_ACCESS_SERVICE_PORT: "3001"
KAFKA_BOOTSTRAP_SERVERS: "kafka:9092"
services:
instagram-api-mock-service:
build:
context: ./instagram-api-mock-service
dockerfile: Dockerfile
environment:
<<: *common-variables
NUM_PROFILES: 10
NUM_PICTURES_PER_PROFILE: 10
INSIGHT_UPDATE_FREQ_MS: 30
PROFILE_UPDATE_FREQ_MS: 50
ports:
- "3000:3000"
depends_on:
kafka:
condition: service_healthy
storage-service:
build:
context: ./storage-service
dockerfile: Dockerfile
environment: *common-variables
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
minio:
condition: service_healthy
visualization-service:
build:
context: ./visualization-service
dockerfile: Dockerfile
environment: *common-variables
ports:
- "5173:3000"
depends_on:
minio:
condition: service_healthy
data-access-service:
build:
context: ./data-access-service
dockerfile: Dockerfile
environment: *common-variables
ports:
- "3001:3001"
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
minio:
condition: service_healthy
kafka-ui:
image: docker.io/provectuslabs/kafka-ui:latest
ports:
- "8080:8080"
environment:
- KAFKA_CLUSTERS_0_NAME=project_data-engineering
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
depends_on:
- kafka
kafka:
image: docker.io/bitnami/kafka:3.5
hostname: kafka
ports:
- "9092:9092"
volumes:
- "kafka_data:/bitnami"
environment:
- ALLOW_PLAINTEXT_LISTENER=yes
healthcheck:
test: ["CMD-SHELL", "kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --list"]
start_period: 15s
interval: 5s
timeout: 10s
retries: 10
clickhouse:
build:
context: ./clickhouse
dockerfile: Dockerfile
ports:
- "8123:8123"
- "19000:9000"
volumes:
- "clickhouse_data:/var/lib/clickhouse"
depends_on:
- kafka
minio:
image: quay.io/minio/minio:latest
command: "server /data --address=:10002 --console-address=:10001"
environment:
MINIO_ROOT_USER: "admin"
MINIO_ROOT_PASSWORD: "admin123"
ports:
- "10002:10002"
- "10001:10001"
volumes:
- "minio_data:/data"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:10002/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
postgres:
build:
context: ./postgresql
dockerfile: Dockerfile
ports:
- "5432:5432"
volumes:
- "postgres_data:/var/lib/postgresql/data"
environment: *common-variables
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
volumes:
clickhouse_data:
driver: local
minio_data:
driver: local
postgres_data:
driver: local
kafka_data:
driver: local