-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (41 loc) · 1015 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (41 loc) · 1015 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
37
38
39
40
41
42
version: "3"
services:
api:
build: .
ports:
- "8080:8080"
environment:
- DATASTORE_PROJECT_ID=local-convo-api
- DATASTORE_LISTEN_ADDRESS=datastore:8081
- DATASTORE_DATASET=local-convo-api
- DATASTORE_EMULATOR_HOST=datastore:8081
- DATASTORE_EMULATOR_HOST_PATH=datastore:8081/datastore
- DATASTORE_HOST=http://datastore:8081
env_file:
- ./.env
volumes:
- .:/var/www
links:
- datastore
- elasticsearch
datastore:
image: singularities/datastore-emulator
environment:
- DATASTORE_PROJECT_ID=local-convo-api
- DATASTORE_LISTEN_ADDRESS=0.0.0.0:8081
command: --consistency=1.0
ports:
- "8081"
elasticsearch:
image: elasticsearch:7.1.1
ports:
- "9200"
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1