-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
67 lines (67 loc) · 1.53 KB
/
docker-compose.yml
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
version: "3"
services:
elasticsearch:
container_name: elasticsearch
image: elasticsearch:8.11.4
network_mode: host
restart: always
env_file:
- elasticsearch.env
volumes:
- /docker/elasticsearch/data:/usr/share/elasticsearch/data
- /docker/elasticsearch/plugins:/usr/share/elasticsearch/plugins
dht-server-full-1: &dht-server
image: zpqsunny/dht-server-full:latest
build:
context: dht-server
dockerfile: Dockerfile
network_mode: host
restart: always
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
environment:
- PORT=6881
dht-server-full-2:
<<: *dht-server
environment:
- PORT=6882
dht-server-full-3:
<<: *dht-server
environment:
- PORT=6883
mongo:
container_name: mongo
image: mongo:7
volumes:
- /docker/mongo/db:/data/db
- /docker/mongo/backup:/backup
command: mongod --shardsvr --replSet shareA --bind_ip_all --port 27018 --oplogMinRetentionHours 3
env_file:
- mongo.env
network_mode: host
restart: always
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
dht-es:
depends_on:
- mongo
image: zpqsunny/dht-es:latest
build:
context: dht-es
dockerfile: Dockerfile
network_mode: host
restart: always
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
env_file:
- dht-mongo.env
- dht-elasticsearch.env