-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (43 loc) · 1.19 KB
/
docker-compose.yaml
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
services:
batch-worker:
image: batch-app:0.0.1-SNAPSHOT
environment:
SERVER_PORT: "80"
SPRING_PROFILES_ACTIVE: "worker,postgres"
SPRING_DATASOURCE_URL: "jdbc:postgresql://postgres-db:5432/batch"
SPRING_RABBITMQ_HOST: "rabbitmq-broker"
EXTERNAL_SYSTEM_PAYMENT_URL: "http://external-system"
deploy:
replicas: 5
external-system:
image: external-system:0.0.1-SNAPSHOT
ports:
- "8081:80"
environment:
SERVER_PORT: "80"
postgres-db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: batch
POSTGRES_PASSWORD: batch
rabbitmq-broker:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
grafana-dashboard:
image: grafana/grafana-oss
ports:
- "3000:3000"
volumes:
- "./etc/grafana/dashboards:/var/lib/grafana/dashboards"
- "./etc/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards"
- "./etc/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources"
prometheus-metrics:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- "./etc/prometheus:/etc/prometheus"