2 Star 5 Fork 1

zpqsunny/dht

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
zpq 提交于 2023-08-07 10:01 . docker-compose.yml
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zpqsunny/dht.git
git@gitee.com:zpqsunny/dht.git
zpqsunny
dht
dht
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385