-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
71 lines (66 loc) · 2.23 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
# This configuration is intended for dev purpose
version : '3.8'
services :
mongodb :
image : mongo:5.0-focal
container_name : acme-mix-cloud-netflix-mongodb
restart : unless-stopped
ports :
- 27017:27017
environment :
- MONGO_INITDB_ROOT_USERNAME=svc_testing_mongo
- MONGO_INITDB_ROOT_PASSWORD=svc_testing_mongo
- MONGO_INITDB_DATABASE=userprofiledb
mysql :
image : mysql:5.7.44
container_name : acme-mix-cloud-netflix-mysql
restart : unless-stopped
ports :
- 3306:3306
environment :
- MYSQL_DATABASE=svc_testing_db
- MYSQL_USER=svc_testing
- MYSQL_PASSWORD=svc_testing
- MYSQL_ROOT_PASSWORD=svc_root
- TZ=UTC
zipkin :
image : openzipkin/zipkin-slim:2.24
container_name : zipkin
environment :
- STORAGE_TYPE=mem
# Uncomment to enable self-tracing
# - SELF_TRACING_ENABLED=true
# Uncomment to enable debug logging
# - JAVA_OPTS=-Dorg.slf4j.simpleLogger.log.zipkin2=debug
ports :
- 9411:9411
depends_on :
- storage
storage :
image : busybox:1.31.0
container_name : fake_storage
dependencies :
image : busybox:1.31.0
container_name : fake_dependencies
prometheus :
container_name : acme-mix-cloud-netflix-prometheus
image : prom/prometheus:v2.48.1
volumes :
- ./docker/prometheus/:/etc/prometheus/
command :
- '--config.file=/etc/prometheus/prometheus.yml'
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode : 'host' # to test locally running service
grafana :
container_name : acme-mix-cloud-netflix-grafana
image :
volumes :
- ./docker/grafana/provisioning/:/etc/grafana/provisioning/
environment :
- GF_SECURITY_ADMIN_PASSWORD=changeme
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-piechart-panel
# On MacOS, remove next line and replace localhost by host.docker.internal in src/main/docker/prometheus/prometheus.yml and
# docker/grafana/provisioning/datasources/datasource.yml
network_mode : 'host' # to test locally running service