-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
83 lines (83 loc) · 2.23 KB
/
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
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
version: '3'
services:
turing-nginx:
container_name: turing-nginx
image: nginx:1.25.2
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./containers/nginx/conf.d:/etc/nginx/conf.d
turing-solr:
container_name: turing-solr
build: ./containers/solr
restart: always
ports:
- "8983:8983"
volumes:
- vol-solr:/var/solr
environment:
- ZK_HOST=turing-zk:2181
depends_on:
- turing-zk
turing-zk:
container_name: turing-zk
hostname: turing-zk
restart: always
image: zookeeper:3.9.1
volumes:
- vol-zk:/data
ports:
- "2181:2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=turing-zk:2888:3888;2181
ZOO_4LW_COMMANDS_WHITELIST: mntr, conf, ruok
ZOO_CFG_EXTRA: "metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider metricsProvider.httpPort=7000 metricsProvider.exportJvmInfo=true"
turing-mariadb:
container_name: turing-mariadb
build: ./containers/mariadb
restart: always
ports:
- "3306:3306"
volumes:
- vol-mariadb:/var/lib/mysql
environment:
MYSQL_DATABASE: turing
MYSQL_ROOT_PASSWORD: turing
MYSQL_USER: turing
MYSQL_PASSWORD: turing
turing:
container_name: turing
build: .
restart: always
ports:
- "2700:2700"
volumes:
- vol-turing-models:/turing/models
- vol-turing-store:/turing/store
- vol-turing-gradle:/root/.gradle
depends_on:
- turing-nginx
- turing-mariadb
- turing-solr
environment:
SPRING_DATASOURCE_URL: jdbc:mariadb://turing-mariadb:3306/turing
SPRING_DATASOURCE_USERNAME: turing
SPRING_DATASOURCE_PASSWORD: turing
SPRING_DATASOURCE_DRIVER_CLASS_NAME: org.mariadb.jdbc.Driver
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: org.hibernate.dialect.MariaDBDialect
TURING_SOLR_CLOUD: true
# SERVER_SSL_KEY_STORE: /turing/store/cert/turing.p12
# SERVER_SSL_KEY_STORE_PASSWORD: turing
# SERVER_SSL_KEY_STORE_TYPE: PKCS12
# SERVER_SSL_KEY_ALIAS: turing
# SERVER_SSL_ENABLED: true
volumes:
vol-solr:
vol-zk:
vol-turing-models:
vol-turing-store:
vol-turing-gradle:
vol-mariadb: