-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.22 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
version: '3.8'
services:
surf-sense-db:
image: postgres:latest
ports:
- 5432:5432
container_name: surf-sense-db
environment:
POSTGRES_USER: devuser
POSTGRES_PASSWORD: devpass
POSTGRES_DB: surf-sense-db
surf-sense-cache:
image: redis/redis-stack:latest
container_name: surf-sense-cache
environment:
REDIS_ARGS: --requirepass devpass
ports:
- 6379:6379
- 8001:8001
prometheus:
image: prom/prometheus:v2.44.0
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- surf-sense-api
grafana:
image: grafana/grafana:9.5.2
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./monitoring/grafana/datasources.yml:/etc/grafana/provisioning/datasources.yml
- grafana-storage:/var/lib/grafana
depends_on:
- prometheus
surf-sense-api:
image: surf-sense/spring-api:latest
container_name: surf-sense-api
build: api
ports:
- 8080:8080
env_file: api/.env
depends_on:
- surf-sense-db
- surf-sense-cache
volumes:
grafana-storage: {}