-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
185 lines (166 loc) · 4.71 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: '3.9'
networks:
metrics:
name: saggu.uk
services:
dev:
container_name: jss
image: tianon/true:latest
depends_on:
- rabbitmq
monitor:
image: tianon/true:latest
depends_on:
- dev
- zookeeper
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 22181:2181
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- 29092:29092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
saggu-camel:
container_name: saggu-camel
image: saggu/camel
ports:
- 8080:8080
networks:
- metrics
prometheus:
container_name: prometheus
image: prom/prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.console.libraries=/usr/share/prometheus/console_libraries
- --web.console.templates=/usr/share/prometheus/consoles
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- metrics
grafana:
container_name: grafana
image: grafana/grafana
ports:
- 3000:3000
networks:
- metrics
volumes:
- ./grafana/:/etc/grafana/provisioning/
rabbitmq:
image: rabbitmq:3-management
container_name: 'rabbitmq-ui'
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_ERLANG_COOKIE=secret
# - RABBITMQ_PLUGINS_DIR=rabbitmq/plugins:/plugins
- RABBITMQ_PLUGINS_DIR=./rabbitmq/plugins:/opt/rabbitmq/plugins
- RABBITMQ_PLUGINS=rabbitmq_management,rabbitmq_message_timestamp
# volumes:
# - ./rabbitmq/plugins:/opt/rabbitmq/plugins
rabbitmq-with-timestamp:
image: rabbitmq-with-timestamp:latest
container_name: 'rabbitmq-with-timestamp'
ports:
- 5672:5672
- 15672:15672
# environment:
# - RABBITMQ_PLUGINS=rabbitmq_management,rabbitmq_message_timestamp
# volumes:
# - ./rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config
# Web: http://localhost:8161/ (admin/admin)
activemq:
image: rmohr/activemq
container_name: activemq
ports:
- 61616:61616
- 8161:8161
tomcat:
#image: tomcat:8.5
image: tomcat
container_name: tomcat
ports:
- 8080:8080
volumes:
- ./tomcat/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
- ./tomcat/context.xml:/tmp/context.xml
- ./tomcat/init.sh:/tmp/init.sh
# command: /bin/bash -c "mv /usr/local/tomcat/webapps /usr/local/tomcat/webapps2;mv /usr/local/tomcat/webapps.dist /usr/local/tomcat/webapps; cp /tmp/context.xml /usr/local/tomcat/webapps/manager/META-INF/context.xml"
# Above command not working so run this after docker compose
# docker exec -i tomcat sh -c "/tmp/init.sh"
#To copy a war file: docker cp camel-tutorial.war tomcat://usr/local/tomcat/webapps/
postgres:
image: postgres
container_name: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: postgres
#URL jdbc:postgresql://localhost:5432/postgres
otel-collector:
image: otel/opentelemetry-collector
# volumes:
# - ./open-telemetry/otel-collector-config.yaml:/etc/otel-collector-config.yaml
# command: ["--config=/etc/otel-collector-config.yaml"]
ports:
- 8888:8888 # Prometheus metrics exposed by the collector
- 8889:8889 # Prometheus exporter metrics
- 4317:4317 # OTLP gRPC receiver
jaeger:
image: jaegertracing/all-in-one:latest
container_name: jaeger
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "14250:14250"
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
otel:
container_name: otel
image: tianon/true:latest
depends_on:
- otel-collector
- jaeger
# docker compose up -d nats
# Connect from CLI
# nats pub jss.hello -s localhost:4222 "Hellooooo" --count=10 --sleep=500ms
# nats sub jss.hello -s localhost:4222
# nats sub ">" -s localhost:4222
nats:
image: nats:latest
container_name: nats
ports:
- "4222:4222"
- "8222:8222"
- "6222:6222"
nats-webui:
image: sphqxe/nats-webui:latest
ports:
- "9090:80"
depends_on:
- nats