-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
121 lines (114 loc) · 2.43 KB
/
docker-compose.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
version: '3.4'
services:
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: library
ports:
- "3306:3306"
networks:
- internal
elasticsearch:
hostname: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
restart: always
expose:
- 9200
ports:
- "9200:9200"
- "9300:9300"
networks:
- internal
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.4.2
restart: always
ports:
- "5601:5601"
links:
- elasticsearch
networks:
- internal
fluentd:
build: ./fluentd
restart: always
volumes:
- ./fluentd/conf:/fluentd/etc
links:
- elasticsearch
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- internal
user:
build:
context: .
dockerfile: ./cmd/user-svc/Dockerfile
entrypoint: [
"bin/user",
]
restart: always
ports:
- "8000:8000"
links:
- mysql
- elasticsearch
- fluentd
- kibana
environment:
ENVIRONMENT: LIBRARY
LIBRARY_SQL_URL: root:password@tcp(mysql:3306)/library?charset=utf8&parseTime=True&loc=Local
LIBRARY_FLUENT_PORT: "24224"
LIBRARY_FLUENT_HOST: "fluentd"
networks:
- internal
book:
build:
context: .
dockerfile: ./cmd/book-svc/Dockerfile
entrypoint: [
"bin/book",
]
restart: always
ports:
- "8001:8001"
links:
- mysql
- elasticsearch
- fluentd
- kibana
environment:
ENVIRONMENT: LIBRARY
LIBRARY_SQL_URL: root:password@tcp(mysql:3306)/library?charset=utf8&parseTime=True&loc=Local
LIBRARY_FLUENT_PORT: "24224"
LIBRARY_FLUENT_HOST: "fluentd"
networks:
- internal
management:
build:
context: .
dockerfile: ./cmd/management-svc/Dockerfile
entrypoint: [
"bin/management",
]
restart: always
ports:
- "8002:8002"
links:
- mysql
- elasticsearch
- fluentd
- kibana
environment:
ENVIRONMENT: LIBRARY
LIBRARY_SQL_URL: root:password@tcp(mysql:3306)/library?charset=utf8&parseTime=True&loc=Local
LIBRARY_FLUENT_PORT: "24224"
LIBRARY_FLUENT_HOST: "fluentd"
networks:
- internal
networks:
internal: