-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (87 loc) · 1.96 KB
/
docker-compose.yml
File metadata and controls
93 lines (87 loc) · 1.96 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
version: '3.7'
services:
readeef:
image: urandom/readeef:alpine3.10-go1.13
container_name: readeef
build:
context: .
dockerfile: Dockerfile
ports:
- ${READEEF_PORT}:8080
depends_on:
- db
- elasticsearch
links:
- db
- elasticsearch
networks:
- elastic
- web
volumes:
- .docker/readeef/config/readeef.toml:/opt/readeef/config/readeef.toml
command: ["/opt/readeef/bin/readeef", "-config=/opt/readeef/config/readeef.toml", "server"]
restart: unless-stopped
db:
image: postgres:${POSTGRES_VERSION}-alpine
container_name: readeef-db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
networks:
- web
volumes:
- pgdata:/var/lib/postgresql/data/
restart: unless-stopped
elasticsearch:
build:
context: .docker/elasticsearch/${ELASTIC_VERSION}/
dockerfile: Dockerfile
args:
- CEREBRO_VERSION=${CEREBRO_VERSION:-"0.8.5"}
container_name: readeef-es
# hostname: elasticsearch
#environment:
# - ES_JAVA_OPTS=-Xms2g -Xmx2g
# mem_limit: 4g
# memswap_limit: 4g
ports:
- "${ELASTIC_PORT}:9200" # Elasticsearch
- "${CEREBRO_PORT}:9000" # Cerebro
ulimits:
memlock:
soft: -1
hard: -1
#nofile:
# soft: 65536
# hard: 65536
#cap_add:
# - IPC_LOCK
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- elastic
entrypoint: /usr/share/elasticsearch/start
restart: unless-stopped
kibana:
image: docker.elastic.co/kibana/kibana:${KIBANA_VERSION}
container_name: readeef-kibana
ports:
- ${KIBANA_PORT}:5601
networks:
- elastic
restart: unless-stopped
networks:
web:
external: false
# driver: bridge
elastic:
external: false
volumes:
pgdata:
driver: local
esdata:
driver: local