-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (53 loc) · 1.53 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
version: "3"
services:
catalog:
build: ./catalog
environment:
APP_PRICING_ENDPOINT: http://pricing:8080/prices
APP_STOCKS_ENDPOINT: http://stocks:8080/stocks
APP_REFERER: http://catalog.me
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/postgres?currentSchema=catalog
SPRING_R2DBC_USERNAME: postgres
SPRING_R2DBC_PASSWORD: root
ports:
- "8080:8080"
depends_on:
- pricing
- stocks
- postgres
pricing:
build: ./pricing
environment:
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/postgres?currentSchema=pricing
SPRING_R2DBC_USERNAME: postgres
SPRING_R2DBC_PASSWORD: root
depends_on:
- postgres
stocks:
build: ./stocks
environment:
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/postgres?currentSchema=stocks
SPRING_R2DBC_USERNAME: postgres
SPRING_R2DBC_PASSWORD: root
depends_on:
- postgres
postgres:
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: root
volumes:
- ./config/postgres:/docker-entrypoint-initdb.d:ro
prometheus:
image: prom/prometheus:v2.44.0
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:9.5.2
volumes:
- "./config/grafana/provisioning:/etc/grafana/provisioning"
- "./config/grafana/dashboards:/var/lib/grafana/dashboards"
- "./config/grafana/grafana.ini:/etc/grafana/grafana.ini"
ports:
- "3000:3000"
depends_on:
- prometheus