-
Notifications
You must be signed in to change notification settings - Fork 146
/
docker-compose.dev.yml
127 lines (116 loc) · 2.64 KB
/
docker-compose.dev.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
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
version: "3.8"
services:
web:
container_name: api
build:
context: ./
dockerfile: docker/Dockerfile
ports:
- "5000:5000"
- "5555:5555"
- "7070:7070"
environment:
- PORT=5000
depends_on:
- postgesql
- redis
restart: always
volumes:
- ./:/app
networks:
- web_api
redis:
image: redis:6-alpine
container_name: api_redis
ports:
- "6379:6379"
restart: always
networks:
- web_api
postgesql:
image: postgres:12-alpine
container_name: api_postgesql
ports:
- "5432:5432"
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=auth_db
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
- web_api
prometheus:
container_name: prometheus_container
image: prom/prometheus
volumes:
- ./docker/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:Z
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention=20d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- '9090:9090'
networks:
- web_api
node_exporter:
container_name: node_exporter_container
image: prom/node-exporter
ports:
- '9101:9100'
networks:
- web_api
grafana:
container_name: grafana_container
image: grafana/grafana
ports:
- '3000:3000'
networks:
- web_api
minio:
image: minio/minio:latest
ports:
- '9000:9000'
container_name: myminio
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
networks:
- web_api
mc:
image: minio/mc:latest
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host rm local;
/usr/bin/mc config host add --quiet --api s3v4 local http://myminio:9000 minio minio123;
/usr/bin/mc rb --force local/somebucketname1/;
/usr/bin/mc mb --quiet local/somebucketname1/;
/usr/bin/mc policy set public local/somebucketname1;
"
networks:
- web_api
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:
- web_api
networks:
web_api:
driver: bridge