代码拉取完成,页面将自动刷新
version: "2"
services:
ids_web:
container_name: ids_web
build:
context: .
dockerfile: Dockerfile-web
environment:
- IDS_ELASTICSEARCH_URL=http://ids_elasticsearch:9200
- IDS_MONGODB_URL=mongodb://ids_mongodb:27017/agent
network_mode: "bridge"
# volumes:
# - ./web/:/web/
depends_on:
- ids_mongodb
- ids_elasticsearch
links:
- ids_mongodb
- ids_elasticsearch
ports:
- 80:80
- 443:443
ids_server:
container_name: ids_server
build:
context: .
dockerfile: Dockerfile-server
environment:
- IDS_ELASTICSEARCH=ids_elasticsearch:9200
- IDS_MONGODB=ids_mongodb:27017
network_mode: "bridge"
depends_on:
- ids_mongodb
- ids_elasticsearch
links:
- ids_mongodb
- ids_elasticsearch
ports:
- 33433:33433
ids_elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.1
volumes:
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
- 9300:9300
network_mode: "bridge"
hostname: "ids_elasticsearch"
environment:
ES_JAVA_OPTS: "-Xmx1024m -Xms1024m"
ids_mongodb:
image: mongo:latest
container_name: "ids_mongodb"
environment:
- MONGO_DATA_DIR=/data/db
volumes:
- ./mongodb_data:/data/db
ports:
- 27017:27017
network_mode: "bridge"
command: mongod
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。