-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (71 loc) · 1.93 KB
/
docker-compose.yml
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
name: ctfmanager
services:
db:
image: mongo
container_name: mongodb
restart: always
ports:
- "27017:27017" # to access with MongoDB Compass
environment:
MONGO_INITDB_ROOT_USERNAME: "${MONGODB_USERNAME}"
MONGO_INITDB_ROOT_PASSWORD: "${MONGODB_PASSWORD}"
volumes:
- mongodb_data:/data/db
kafka:
image: bitnami/kafka
container_name: kafka
restart: always
ports:
- "9094:9094" # for external access
# "9092:9092" # for internal access, no need to expose externally
volumes:
- kafka_data:/bitnami
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_PROCESS_ROLES=controller,broker
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://0.0.0.0:9094
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092,EXTERNAL://${EXTERNAL_IP}:9094
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
api:
image: tanguynicolas/ctf-manager:latest
pull_policy: always
restart: unless-stopped
expose:
- 80
environment:
- MONGODB_URL=${MONGODB_URL}
- KAFKA_ENABLE=true
- KAFKA_HOSTNAME=kafka
- KAFKA_PORT=9092
- KAFKA_TOPIC=ctfmanager
depends_on:
- db
- kafka
lb:
image: tanguynicolas/ctf-manager-lb:latest
pull_policy: always
restart: unless-stopped
ports:
- 80:80
environment:
- BEARER_TOKEN=${BEARER_TOKEN}
depends_on:
- api
pdc-agent:
image: grafana/pdc-agent
restart: always
container_name: pdc-agent
command:
- "-token"
- "${GCLOUD_PDC_SIGNING_TOKEN}"
- "-gcloud-hosted-grafana-id"
- "${GCLOUD_HOSTED_GRAFANA_ID}"
- "-cluster"
- "${GCLOUD_PDC_CLUSTER}"
depends_on:
- db
volumes:
mongodb_data:
kafka_data: