-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.docker-compose.yaml
More file actions
101 lines (94 loc) · 2.46 KB
/
dev.docker-compose.yaml
File metadata and controls
101 lines (94 loc) · 2.46 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
version: "3.9"
services:
postgres:
image: postgres:14.8-alpine3.18
container_name: dev_grading_postgres
environment:
PGDATA: "/var/lib/postgresql/data/pgdata"
env_file: ".env"
volumes:
- grading_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $POSTGRES_USER -d $POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
minio:
image: minio/minio:RELEASE.2025-02-28T09-55-16Z
container_name: dev_grading_minio
command: server --console-address ":9001" /data/
ports:
- "9000:9000"
- "9001:9001"
env_file: ".env"
volumes:
- artifacts_data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
restart: unless-stopped
zookeeper:
image: confluentinc/cp-zookeeper:latest
container_name: dev_grading_zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 22181:2181
kafka:
image: confluentinc/cp-kafka:latest
container_name: dev_grading_kafka
depends_on:
- zookeeper
ports:
- 29092:29092
hostname: kafka
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
kafka-ui:
image: provectuslabs/kafka-ui
container_name: dev_grading_kafka_ui
ports:
- 8090:8080
env_file: ".env"
restart: always
environment:
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:29092
- KAFKA_CLUSTERS_0_ZOOKEEPER=zookeeper:2181
- AUTH_TYPE="LOGIN_FORM"
- SPRING_SECURITY_USER_NAME=$KAFKA_UI_ADMIN_LOGIN
- SPRING_SECURITY_USER_PASSWORD=$KAFKA_UI_ADMIN_PASSWORD
links:
- kafka
- zookeeper
api:
build:
context: .
dockerfile: dev.Dockerfile
container_name: dev_api
ports:
- 8000:8000
env_file: ".env"
restart: always
environment:
- KAFKA_BOOTSTRAP_SERVERS=kafka:29092
- MINIO_HOST=minio
- POSTGRES_HOST=postgres
- MODE=dev
volumes:
- ./src:/app/src
volumes:
grading_data:
artifacts_data: