Repository navigation
Expand file tree
/
Copy pathdocker-compose.staging.yml
More file actions
149 lines (134 loc) · 3.19 KB
/
Copy pathdocker-compose.staging.yml
File metadata and controls
149 lines (134 loc) · 3.19 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
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
services:
notekafka1:
image: bitnami/kafka:3.6.2-debian-12-r5
container_name: notekafka1
ports:
- "9092:9092"
env_file:
- ./env.compose
networks:
- note-network
volumes:
- ./kafka_data1:/bitnami/kafka
environment:
KAFKA_CFG_NODE_ID: 1
KAFKA_CFG_ADVERTISED_LISTENERS: INTERNAL://notekafka1:9092
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@notekafka1:9095,2@notekafka2:9095,3@notekafka3:9095
notekafka2:
image: bitnami/kafka:3.6.2-debian-12-r5
container_name: notekafka2
ports:
- "9093:9092"
env_file:
- ./env.compose
networks:
- note-network
volumes:
- ./kafka_data2:/bitnami/kafka
environment:
KAFKA_CFG_NODE_ID: 2
KAFKA_CFG_ADVERTISED_LISTENERS: INTERNAL://notekafka2:9092
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@notekafka1:9095,2@notekafka2:9095,3@notekafka3:9095
notekafka3:
image: bitnami/kafka:3.6.2-debian-12-r5
container_name: notekafka3
restart: always
ports:
- "9094:9092"
env_file:
- ./env.compose
networks:
- note-network
volumes:
- ./kafka_data3:/bitnami/kafka
environment:
KAFKA_CFG_NODE_ID: 3
KAFKA_CFG_ADVERTISED_LISTENERS: INTERNAL://notekafka3:9092
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@notekafka1:9095,2@notekafka2:9095,3@notekafka3:9095
nats-server:
image: nats:latest
container_name: nats-server
ports:
- "4222:4222"
- "8222:8222"
networks:
- note-network
volumes:
- ./nats_data:/data
- ./nats-server.conf:/etc/nats/nats-server.conf
command: ["-c", "/etc/nats/nats-server.conf"]
http-server:
image: ${DOCKER_USERNAME}/http-server:latest
container_name: http-server
env_file:
- ./env.compose
ports:
- "3001:3001"
environment:
- DATABASE_URL=${DATABASE_URL}
networks:
- note-network
depends_on:
- notekafka1
- notekafka2
- notekafka3
- nats-server
filehandler-server:
image: ${DOCKER_USERNAME}/filehandler-server:latest
container_name: filehandler-server
env_file:
- ./env.compose
ports:
- "3002:3002"
networks:
- note-network
depends_on:
- notekafka1
- notekafka2
- notekafka3
- nats-server
worker-server:
image: ${DOCKER_USERNAME}/worker-server:latest
container_name: worker-server
env_file:
- ./env.compose
ports:
- "3003:3003"
networks:
- note-network
depends_on:
- notekafka1
- notekafka2
- notekafka3
- nats-server
ws-server:
image: ${DOCKER_USERNAME}/ws-server:latest
container_name: ws-server
env_file:
- ./env.compose
ports:
- "8080:8080"
networks:
- note-network
depends_on:
- notekafka1
- notekafka2
- notekafka3
- nats-server
- worker-server
web:
image: ${DOCKER_USERNAME}/web:latest
container_name: web
env_file:
- ./env.compose
ports:
- "3000:3000"
networks:
- note-network
networks:
note-network:
driver: bridge
volumes:
kafka_data1:
kafka_data2:
kafka_data3: