-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (88 loc) · 2.32 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
version: "3.9"
services:
nexus:
container_name: nexus
hostname: nexus
image: "sonatype/nexus3:3.34.0"
ports:
- '8081:8081'
volumes:
- "nexus-data:/nexus-data"
hdm:
container_name: hdm
hostname: hdm
command: ["/bin/bash", "start.sh"]
build:
context: .
args:
- http_proxy
- https_proxy
- no_proxy
ports:
- "80:80"
volumes:
- ".:/var/www/html/"
mysql:
container_name: mysql
hostname: mysql
image: mysql:8.0.23
restart: always
command: --default-authentication-plugin=mysql_native_password
environment:
- "MYSQL_DATABASE=dbhdm"
# So you don't have to use root, but you can if you like
- "MYSQL_USER=hdm"
# You can use whatever password you like
- "MYSQL_PASSWORD=password"
# Password for root access
- "MYSQL_ROOT_PASSWORD=rootpassword"
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
expose:
# Opens port 3306 on the container
- '3306'
# Where our data will be persisted
volumes:
- my-db:/var/lib/mysql
elasticsearch:
container_name: elasticsearch
hostname: elasticsearch
image: "docker.elastic.co/elasticsearch/elasticsearch:7.12.0"
environment:
- cluster.name=es-cluster
- node.name=es-node-1
- path.data=/usr/share/elasticsearch/data
- http.port=9200
- http.host=0.0.0.0
- transport.host=127.0.0.1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms8g -Xmx8g"
- xpack.security.enabled=false
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- '9200:9200'
healthcheck:
test: ["CMD", "curl","-s" ,"-f", "-u", "elastic:password", "http://localhost:9200/_cat/health"]
kibana:
container_name: kibana
hostname: kibana
image: "docker.elastic.co/kibana/kibana:7.12.0"
environment:
- "ELASTICSEARCH_PASSWORD=password"
- server.port=127.0.0.1:5601
- elasticsearch.url="http://elasticsearch:9200"
- server.name="kibana"
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
ports:
- '5601:5601'
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://localhost:5601/login"]
retries: 6
depends_on:
- elasticsearch
volumes:
my-db:
es-data:
nexus-data: