-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.19 KB
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
services:
# runs the tests
test:
build:
context: .
dockerfile: docker/Dockerfile
environment:
PYTHONUNBUFFERED: 1
PYTHONDONTWRITEBYTECODE: 1
depends_on:
- es
- mongo
volumes:
- '.:/usr/src/app'
# serves the docs locally with realtime auto-reloading
docs:
build:
context: .
dockerfile: docker/Dockerfile
environment:
PYTHONUNBUFFERED: 1
PYTHONDONTWRITEBYTECODE: 1
command: mkdocs serve -f mkdocs.yml -a 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- "./docs:/usr/src/app/docs"
es:
image: elasticsearch:8.10.1
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xms2g -Xmx2g
cluster.name: sg
node.name: sg-one
network.bind_host: 0.0.0.0
cluster.routing.allocation.disk.threshold_enabled: "false"
network.host: 0.0.0.0
# this allows us to access the cluster over http
xpack.security.enabled: "false"
# this ensures the tests can delete indexes using wildcards
action.destructive_requires_name: "false"
ports:
- "9200:9200"
- "9100:9100"
mongo:
image: mongo:6.0.8
ports:
- "27017:27017"