-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
134 lines (119 loc) · 2.67 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "3.6"
services:
money-transfer:
deploy:
replicas: 1
build:
context: ./
dockerfile: Dockerfile
args:
- PINPOINT_VERSION=2.5.3
- AGENT_ID=java-app-in-docker
- APP_NAME=money-transfer
- SPRING_PROFILES=local
volumes:
- data-volume:/pinpoint-agent
ports:
- "80:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://host.docker.internal:3307/money_transfer_service?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
SPRING_DATASOURCE_USERNAME: 'root'
SPRING_DATASOURCE_PASSWORD: 'password!'
depends_on:
- pinpoint-web
- pinpoint-hbase
- pinpoint-agent
- pinpoint-collector
- money-transfer-database
networks:
- pinpoint
money-transfer-database:
image: mysql:8.0
environment:
MYSQL_DATABASE: money_transfer_service
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: 'password!'
TZ: 'Asia/Seoul'
ports:
- "3307:3306"
command:
- "mysqld"
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--innodb_buffer_pool_size=256M"
networks:
- pinpoint
pinpoint-hbase:
extends:
file: ./pinpoint/docker-compose.yml
service: pinpoint-hbase
networks:
- pinpoint
pinpoint-web:
extends:
file: ./pinpoint/docker-compose.yml
service: pinpoint-web
networks:
- pinpoint
pinpoint-collector:
extends:
file: ./pinpoint/docker-compose.yml
service: pinpoint-collector
networks:
- pinpoint
pinpoint-agent:
extends:
file: ./pinpoint/docker-compose.yml
service: pinpoint-agent
networks:
- pinpoint
zoo1:
extends:
file: ./pinpoint/docker-compose.yml
service: zoo1
networks:
- pinpoint
zoo2:
extends:
file: ./pinpoint/docker-compose.yml
service: zoo2
networks:
- pinpoint
zoo3:
extends:
file: ./pinpoint/docker-compose.yml
service: zoo3
jobmanager:
extends:
file: ./pinpoint/docker-compose.yml
service: jobmanager
networks:
- pinpoint
taskmanager:
extends:
file: ./pinpoint/docker-compose.yml
service: taskmanager
networks:
- pinpoint
redis:
extends:
file: ./pinpoint/docker-compose.yml
service: redis
networks:
- pinpoint
pinpoint-mysql:
extends:
file: ./pinpoint/docker-compose.yml
service: pinpoint-mysql
networks:
- pinpoint
volumes:
data-volume:
hbase_data:
mysql_data:
networks:
pinpoint:
driver: bridge
ipam:
config:
- subnet: ${PINPOINT_NETWORK_SUBNET}