-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1007 Bytes
/
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
version: '3.9'
networks:
weatherapp-network:
services:
app:
image: 'weatherapp:latest'
build:
context: ./app-01
ports:
- "9595-9597:8080"
deploy:
mode: replicated
replicas: 3
networks:
- weatherapp-network
environment:
- "WEATHER_STACK_API_KEY=${WEATHER_STACK_API_KEY}"
prometheus:
image: prom/prometheus:v2.35.0
container_name: prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./app-01/data/prometheus/config:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
networks:
- weatherapp-network
grafana:
image: grafana/grafana-oss:8.5.2
pull_policy: always
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./app-01/data/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SERVER_DOMAIN=localhost
networks:
- weatherapp-network