代码拉取完成,页面将自动刷新
version: "3"
services:
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.17.7
network_mode: host
restart: always
env_file:
- es.env
volumes:
- /docker/elasticsearch/data:/usr/share/elasticsearch/data
- /docker/elasticsearch/plugins:/usr/share/elasticsearch/plugins
redis:
container_name: redis
image: redis:5.0.14
volumes:
- /docker/redis/data/:/data
- /docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
network_mode: host
restart: always
user: root
entrypoint: redis-server /usr/local/etc/redis/redis.conf
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
dht-server-1: &dht-server
depends_on:
- redis
image: zpqsunny/dht-server:latest
build:
context: dht-server
dockerfile: Dockerfile
network_mode: host
restart: always
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
env_file:
- dht-redis.env
environment:
- PORT=6881
dht-server-2:
<<: *dht-server
environment:
- PORT=6882
dht-server-3:
<<: *dht-server
environment:
- PORT=6883
mongo:
container_name: mongo
image: mongo:4.4.1
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-peer:
depends_on:
- redis
- mongo
deploy:
mode: replicated
replicas: 3
image: zpqsunny/dht-peer:latest
build:
context: dht-server
dockerfile: Dockerfile
network_mode: host
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "2"
max-size: "20m"
volumes:
- /metadata:/metadata
env_file:
- dht-mongo.env
- dht-redis.env
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-redis.env
- dht-mongo.env
- dht-es.env
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。