-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.23 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
version: '3'
services:
mysql_db:
container_name: trace_mysql
image: "mysql:latest"
restart: always
ports:
- "3306:3306"
environment:
- "MYSQL_ROOT_PASSWORD=password"
volumes:
- "/root/data/mysql:/var/lib/mysql"
myadmin:
container_name: trace_myadmin
image: "phpmyadmin/phpmyadmin:latest"
environment:
- PMA_HOST=mysql_db
- PMA_PORT=3306
links:
- mysql_db
depends_on:
- mysql_db
ports:
- "8080:80"
mongodb:
container_name: trace_mongo
build: mongo/
restart: always
ports:
- "27017:27017"
volumes:
- "./mongo/:/starter/"
- "/root/data/mongo:/data/db"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
elastic:
container_name: trace_elastic
build: elastic/
restart: always
ports:
- "9200:9200"
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- vm.max_map_count=262144
- xpack.security.enabled=false
volumes:
- "/root/data/escfg:/usr/share/elasticsearch/config"
- "./elastic:/data/elastic"
- "/root/data/elastic:/usr/share/elasticsearch/data"