-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 920 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
version: '3.7'
services:
web:
build: .
image: timdex
ports:
- 3000:3000
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_INDEX: timdex-prod
depends_on:
- elasticsearch
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- type: bind
source: .
target: /timdex
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.23@sha256:ca5dac2352e09263e55cccac445d69a0d2eec9c8c26a4c95c3b1430de1f427f2
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- type: volume
source: esdata
target: /var/timdex/esdata
ports:
- 9200:9200
volumes:
esdata: