-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 882 Bytes
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
version: '3'
services:
db:
image: mysql:5.7.22
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./db:/docker-entrypoint-initdb.d/:ro
env_file:
- .env
web:
depends_on:
- "db"
- "elasticsearch"
build: .
command: flask run --host=0.0.0.0
volumes:
- .:/code
ports:
- "5000:5000"
env_file:
- .env
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ES_STACK_VERSION}
container_name: elasticsearch
environment:
- node.name=elasticsearch
- discovery.type=single-node
- xpack.security.enabled=true
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- cluster.routing.allocation.disk.threshold_enabled=false
volumes:
- ./config/synonyms.txt:/usr/share/elasticsearch/config/synonyms.txt
env_file:
- .env