-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.platform.yml
More file actions
58 lines (56 loc) · 1.75 KB
/
Copy pathdocker-compose.platform.yml
File metadata and controls
58 lines (56 loc) · 1.75 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
# docker-compose.platform.yml
#
# This file defines the local Docker Compose stack for docker compose.platform.
# It is part of the IICPC platform configuration and should remain
# aligned with the deployment and operations guidance in the README.
# Keep comments at the file header so resource bodies stay declarative.
services:
leaderboard-api:
build:
context: .
dockerfile: services/leaderboard-api/Dockerfile
environment:
PORT: "8080"
METRICS_ADDR: "0.0.0.0:9090"
DATABASE_URL: postgres://iicpc:iicpc@postgres:5432/iicpc
TIMESCALE_URL: postgres://iicpc:iicpc@timescaledb:5432/metrics
REDIS_ADDR: redis:6379
KAFKA_BROKERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
PROMETHEUS_URL: http://prometheus:9090
ports:
- "8081:8080"
- "9101:9090"
depends_on:
postgres:
condition: service_healthy
timescaledb:
condition: service_healthy
redis:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
restart: unless-stopped
submission-api:
build:
context: .
dockerfile: services/submission-api/Dockerfile
environment:
PORT: "8080"
DATABASE_URL: postgres://iicpc:iicpc@postgres:5432/iicpc
MINIO_ENDPOINT: minio:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
MINIO_BUCKET: submissions
MINIO_CREATE_BUCKET_IF_MISSING: "true"
KAFKA_BROKERS: kafka-1:9092,kafka-2:9092,kafka-3:9092
AUTH_REQUIRED: "false"
ports:
- "8082:8080"
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
restart: unless-stopped