-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (65 loc) · 1.31 KB
/
docker-compose.yaml
File metadata and controls
69 lines (65 loc) · 1.31 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
services:
es01:
image: ubuntu-systemd:latest
hostname: es01
container_name: es01
privileged: true
environment:
- NODE_NAME=es01
volumes:
- es01_data:/var/lib/elasticsearch
- es01_conf:/etc/elasticsearch
- /sys/fs/cgroup:/sys/fs/cgroup:rw
ports:
- "9200:9200" # expose ES01 on localhost
networks:
- esnet
tmpfs:
- /run
- /run/lock
es02:
image: ubuntu-systemd:latest
hostname: es02
container_name: es02
privileged: true
environment:
- NODE_NAME=es02
volumes:
- es02_data:/var/lib/elasticsearch
- es02_conf:/etc/elasticsearch
- /sys/fs/cgroup:/sys/fs/cgroup:rw
ports:
- "9201:9200" # expose ES02 on localhost
networks:
- esnet
tmpfs:
- /run
- /run/lock
es01-init:
image: alpine:3
depends_on:
- es01
volumes:
- ./init-watermark.sh:/init.sh:ro
entrypoint: ["/bin/sh", "-c"]
command: "/init.sh"
restart: "no"
networks:
- esnet
# tools:
# image: alpine:latest
# container_name: tools
# command: ["sh", "-c", "sleep infinity"]
# networks:
# - esnet
# depends_on:
# - es01
# - es02
volumes:
es01_data:
es01_conf:
es02_data:
es02_conf:
networks:
esnet:
driver: bridge