forked from y-okumura-isp/knowledge
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
92 lines (86 loc) · 2.11 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
version: "2.1"
services:
maven:
image: knowledge-dev
user: "${DUID}:${DGID}"
build:
context: .
args:
- https_proxy
- http_proxy
- no_proxy
command: mvn -v
environment:
KNOWLEDGE_TEST_MAIL: "false"
MAVEN_CONFIG: /var/maven/.m2
https_proxy: ${https_proxy}
http_proxy: ${http_proxy}
HOME: /usr/src/mymaven/
no_proxy: ${no_proxy}
working_dir: /usr/src/mymaven/
entrypoint: ""
volumes:
- $PWD:/usr/src/mymaven
- ${KNOWLEDGE_HOME}.m2:/root/.m2
tomcat:
image: tomcat:9.0.64-jre11-temurin-focal
ports:
- 8080:8080
- 8009:8009
expose:
- 8080
# links:
# - mailcatcher
# - postgres
# - elasticsearch
# - kibana
environment:
https_proxy: ${https_proxy}
http_proxy: ${http_proxy}
no_proxy: ${no_proxy}
volumes:
- ${KNOWLEDGE_HOME}.knowledge:/root/.knowledge
- $PWD/target/webapps:/usr/local/tomcat/webapps
mailcatcher:
image: zolweb/docker-mailcatcher
ports:
- 1025:1025
- 1080:1080
expose:
- 1080
postgres:
image: postgres:9.6.5
ports:
- 15432:5432
expose:
- 5432
environment:
POSTGRES_PASSWORD: "1qazxsw2"
volumes:
- ${KNOWLEDGE_HOME}.postgres:/var/lib/postgresql/data
elasticsearch:
image: elasticsearch:5.5.2-alpine
ports:
- 9200:9200
- 9300:9300
environment:
transport.host: "0.0.0.0"
discovery.zen.minimum_master_nodes: "1"
xpack.security.enabled: "false"
xpack.monitoring.enabled: "true"
xpack.watcher.enabled: "false"
xpack.graph.enabled: "false"
xpack.monitoring.history.duration: "1d"
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- ${KNOWLEDGE_HOME}.es_data:/usr/share/elasticsearch/data
kibana:
image: kibana:5.5.2
links:
- elasticsearch
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: "http://elasticsearch:9200"
XPACK_MONITORING_ELASTICSEARCH_URL: "http://elasticsearch:9200"
XPACK_SECURITY_ENABLED: "false"