-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
80 lines (72 loc) · 1.68 KB
/
docker-compose-local.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
# Description: This file is used to run services for application without go code
# to run use the command: docker-compose -f docker-compose-local.yml up
version: "3.8"
services:
redis:
image: redis:7.0.7-alpine
container_name: user_redis
ports:
- "6379:6379"
restart: always
networks:
- user_network
postgres:
image: postgres:14.6-alpine
container_name: user_postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: user
POSTGRES_PORT: 5432
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
- user_network
prometheus:
image: prom/prometheus
container_name: prometheus_container
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command:
- --config.file=/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
networks:
- user_network
node_exporter:
container_name: node_exporter_container
image: prom/node-exporter
ports:
- '9101:9100'
networks:
- user_network
grafana:
container_name: grafana_container
image: grafana/grafana
ports:
- '3000:3000'
networks:
- user_network
jaeger:
container_name: jaeger_container
restart: always
image: jaegertracing/all-in-one:1.21
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "14250:14250"
- "9411:9411"
networks:
- user_network
networks:
user_network:
driver: bridge