-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
51 lines (47 loc) · 1.36 KB
/
docker-compose.prod.yml
File metadata and controls
51 lines (47 loc) · 1.36 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
version: '3.8'
services:
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v23.2.1
container_name: codepulse-kafka
command:
- redpanda start
- --smp 1
- --overprovisioned
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://${ORACLE_IP}:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://${ORACLE_IP}:18082
ports:
- "19092:19092"
- "18082:18082"
- "8081:8081"
- "9644:9644"
healthcheck:
test: ["CMD", "rpk", "cluster", "info"]
interval: 5s
timeout: 10s
retries: 5
worker-service:
build:
context: ./services/worker-service
container_name: codepulse-worker-service
environment:
- KAFKA_BOOTSTRAP_SERVERS=redpanda:9092
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
depends_on:
redpanda:
condition: service_healthy
security-worker:
build:
context: ./services/worker
container_name: codepulse-security-worker
environment:
- KAFKA_BOOTSTRAP_SERVERS=redpanda:9092
- GEMINI_API_KEY=${GEMINI_API_KEY}
depends_on:
redpanda:
condition: service_healthy
networks:
default:
name: codepulse-network