-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
64 lines (60 loc) · 1.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
version: "3.9"
services:
web:
build:
context: .
container_name: questionnaire_web
expose:
- 8080
ports:
- 8080:8080
networks:
- quesnet
environment:
- DB_HOST=db
- DB_PORT=3306
- DB=questionnaire
- DB_USER=questionnaire
- DB_PASSWORD=123456
- ES_ADDRESS=es:9200
restart: always
depends_on:
- db
- es
db:
image: mysql:8.0.22
container_name: questionnaire_db
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=questionnaire
- MYSQL_USER=questionnaire
- MYSQL_PASSWORD=123456
command: ["--character-set-server=utf8mb4"]
volumes:
- ./docker/initdb/:/docker-entrypoint-initdb.d/
expose:
- 3306
ports:
- "3306:3306"
networks:
- quesnet
es:
image: elasticsearch:7.6.2
container_name: questionnaire_es
environment:
- discovery.type=single-node
depends_on:
- db
expose:
- 9200
- 9300
ports:
- "9200:9200"
command: ["/bin/bash","-c",
"elasticsearch-plugin install -batch https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.6.2/elasticsearch-analysis-ik-7.6.2.zip
&& docker-entrypoint.sh"]
networks:
- quesnet
networks:
quesnet:
driver: bridge