-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (106 loc) · 2.41 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
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
version: '2.4'
services:
data-service:
image: alexunc/data-service:latest
ports:
- 9091:8080
healthcheck:
test: [ "CMD", "curl", "http://localhost:8082/actuator/health" ]
interval: 30s
timeout: 10s
retries: 5
networks:
- common
db:
image: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: example
POSTGRES_USER: sample_user
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 1s
timeout: 1s
retries: 60
networks:
- common
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
# ports:
# - 9200:9200
# - 9300:9300
# volumes:
## - ./config/elasticsearch/data:/usr/share/elasticsearch/data:rw
# - es_data:/usr/share/elasticsearch/data:rw
# networks:
# - common
# kibana:
# image: docker.elastic.co/kibana/kibana:6.3.2
# ports:
# - 5601:5601
# depends_on:
# - elasticsearch
# networks:
# - common
# logstash:
# image: docker.elastic.co/logstash/logstash:6.3.2
# ports:
# - 25826:25826
# volumes:
# - ./config/elk:/elk-config
# - ./logs/:/logs
# command: logstash -f /elk-config/logstash.config
# depends_on:
# - elasticsearch
# networks:
# - common
#networks:
# common:
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- common
grafana:
image: grafana/grafana
ports:
- 3000:3000
networks:
- common
zipkin:
image: openzipkin/zipkin
ports:
- 9411:9411
volumes:
es_data:
# relay-service:
# build:
# context: backend/
# dockerfile: Dockerfile
# restart: always
# ports:
# - 8080:8080
# container_name: backend
# links:
# - mongo-relay-service
# environment:
# - ADDITIONAL_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
# - MONGODB_HOST=mongo
# - MONGODB_PORT=27017
# - MONGODB_USERNAME=test
# - MONGODB_PASSWORD=test
# - MONGODB_DATABASE=test
#
# depends_on:
# - mongo-relay-service
# ports:
# - "5005:5005"
# - "8080:8080"
networks:
common:
enable_ipv6: false