-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
132 lines (123 loc) · 2.73 KB
/
docker-compose-dev.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: '3.9'
services:
goetia:
image: goetia:${IMAGE_TAG}
build:
context: .
dockerfile: Dockerfile
ports:
- '8080:8080'
- '50051:50051'
env_file:
- .env
depends_on:
- postgres
- redis
networks:
- todos
restart: on-failure
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- '5432:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
- ./database/migrations:/docker-entrypoint-initdb.d/
networks:
- todos
redis:
image: redis:latest
ports:
- '6379:6379'
volumes:
- redis:/data
- redis-config:/usr/local/etc/redis/redis.conf
command:
- redis-server
networks:
- todos
redis-commander:
image: rediscommander/redis-commander:latest
ports:
- '8081:8081'
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=root
depends_on:
- redis
networks:
- todos
prometheus:
image: prom/prometheus:v2.40.4
ports:
- '9090:9090'
volumes:
- ./provisioning/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--enable-feature=remote-write-receiver'
- '--enable-feature=native-histograms'
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- todos
grafana:
image: grafana/grafana:9.3.0
ports:
- '3000:3000'
depends_on:
- jaeger
- prometheus
- loki
networks:
- todos
volumes:
- grafana-data:/var/lib/grafana
- ./provisioning:/etc/grafana/provisioning
jaeger:
container_name: jaeger_container
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:
- todos
loki:
image: grafana/loki:latest
ports:
- '3100:3100'
command: -config.file=/etc/loki/local-config.yaml
networks:
- todos
promtail:
image: grafana/promtail:latest
container_name: promtail
volumes:
- ./provisioning/promtail/promtail-config.yaml:/etc/promtail/docker-config.yaml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
command: -config.file=/etc/promtail/docker-config.yaml
depends_on:
- loki
networks:
- todos
volumes:
postgres-data:
redis:
redis-config:
grafana-data:
networks:
todos:
driver: bridge