-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.other.yml
69 lines (65 loc) · 1.63 KB
/
docker-compose.other.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
version: "3.8"
services:
### ELASTICSEARCH Container ###
elasticsearch:
image: elasticsearch:7.12.1
container_name: elasticsearch
environment:
- node.name=es01
- cluster.name=es-docker-cluster
# - discovery.seed_hosts=es02,es03
- cluster.initial_master_nodes=es01
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=DkIedPPSCb
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin=*
- http.cors.allow-headers="Authorization, X-Requested-With,X-Auth-Token,Content-Type, Content-Length"
- http.cors.allow-credentials=true
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- net-elasticsearch
### MYSQL8 Container ###
mysql8:
platform: linux/amd64
build: ./core/images/mysql8
container_name: mysql8
volumes:
- type: volume
source: db-mysql8
target: /var/lib/mysql
volume:
nocopy: true
- ./core/conf/mysql8/conf/my.cnf:/etc/mysql/my.cnf:ro
- type: bind
source: ./share-files
target: /var/www/share-files
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
restart: always
networks:
- net-mysql8
### Networks Setup ###
networks:
net-elasticsearch:
driver: bridge
net-mysql8:
driver: bridge
### Volumes Setup ###
volumes:
esdata:
driver: local
db-mysql8:
driver: local