-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
37 lines (34 loc) · 920 Bytes
/
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
services:
# Mysql
db:
container_name: elasticsearch-data-collector-db
image: mysql:8.1.0
cap_add:
- SYS_NICE
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: data-client
MYSQL_ROOT_PASSWORD: data-client-root-pwd
volumes:
- db:/var/lib/mysql
# Data Client
elasticsearch-data-collector:
image: ddemirel/elasticsearch-data-collector:tagname
container_name: elasticsearch-data-collector-app
depends_on:
- db
environment:
- TZ=Europe/Istanbul
- ES_DATA_COLLECTOR_APP_DB_CONNECTION_STRING=root:data-client-root-pwd@tcp(db:3306)/data-client?parseTime=true
- ES_DATA_COLLECTOR_ELASTICSEARH_ADDRESS=http://192.168.1.52:9200
- ES_DATA_COLLECTOR_APP_DB_WAIT_CONNECTION=true
ports:
- "8080:8080"
- "3001:3000"
links:
- db
# Volume definition for persistent data
volumes:
db:
driver: local