1 Star 0 Fork 47

wangyuze/forallcn-iotps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 4.08 KB
一键复制 编辑 原始数据 按行查看 历史
eruditeLoong 提交于 2022-03-14 00:05 . Changes
version: '3.8'
services:
redis:
image: redis
restart: always
container_name: jeecg-boot-redis
ports:
- '6379:6379'
# volumes:
# - /data
command: redis-server --appendonly yes
environment:
- TZ=Asia/Shanghai
# mysql:
# image: mysql:5.7
# restart: always
# container_name: jeecg-boot-mysql
# ports:
# - '3366:3306'
# environment:
# MYSQL_ROOT_PASSWORD: root
# TZ: Asia/Shanghai
# volumes:
# - /home/docker/mysql/conf:/etc/mysql
# - /home/docker/mysql/data:/var/lib/mysql
# command: [ '--lower_case_table_names=1' ]
# elasticsearch:
# image: elasticsearch
# container_name: jeecg-boot-elasticsearch
# restart: always
# environment:
# ES_JAVA_OPTS: -Djava.net.preferIPv4Stack=true -Xms1g -Xmx1g
# transport.host: 0.0.0.0
# discovery.type: single-node
# bootstrap.memory_lock: 'true'
# discovery.zen.minimum_master_nodes: 1
# discovery.zen.ping.unicast.hosts: elasticsearch
# volumes:
# - /home/docker/elk/elasticsearch/plugins:/usr/share/elasticsearch/plugins #插件文件挂载
# - /home/docker/elk/elasticsearch/data:/usr/share/elasticsearch/data #数据文件挂载
# ports:
# - '9200:9200'
# - '9300:9300'
# kibana:
# image: kibana
# container_name: jeecg-boot-kibana
# restart: always
# links:
# - elasticsearch:jeecg-boot-elasticsearch
# ports:
# - '5601:5601'
# environment:
# ELASTICSEARCH_URL: http://elasticsearch:9200 #设置访问elasticsearch的地址
# depends_on:
# - elasticsearch
# logstash:
# image: logstash
# container_name: jeecg-boot-logstash
# restart: always
# command: logstash -f /etc/logstash/conf.d/logstash.conf #logstash 启动时使用的配置文件
# volumes:
# - /home/docker/elk/logstash/conf.d:/etc/logstash/conf.d #挂载logstash的配置文件
# depends_on:
# - elasticsearch #kibana在elasticsearch启动之后再启动
# links:
# - elasticsearch:jeecg-boot-elasticsearch #可以用es这个域名访问elasticsearch服务
# ports:
# - '4560:4560'
# - '5044:5044'
# - '9600:9600'
emq:
image: emqx/emqx
container_name: jeecg-boot-emqx
restart: always
ports:
- '18083:18083'
- '1883:1883'
- '8084:8084'
- '8883:8883'
- '8083:8083'
# jeecg-boot:
# image: jeecg-boot
# build:
# context: ./
# dockerfile: Dockerfile
# container_name: jeecg-boot
# restart: always
# environment:
# - 'spring.datasource.dynamic.datasource.master.url=jdbc:mysql://127.0.0.1:3366/iotps?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false'
# - 'spring.datasource.dynamic.datasource.master.username=root'
# - 'spring.datasource.dynamic.datasource.master.password=root'
# - 'spring.redis.host=redis'
# - 'spring.redis.port=6379'
# - 'mqtt.url=tcp://127.0.0.1:1883'
# - 'jeecg.path.upload=/home/docker/iotps/upload/upFiles'
# - 'jeecg.path.webapp=/home/docker/iotps/upload/webapp'
# depends_on:
# - redis
# - mysql
# - emq
# # ports:
# # - '8080:8080'
# # - '8888:8888'
# # - '8889:8889'
# # "host" network_mode is incompatible with port_bindings。
# # host:使用宿主机网络接口功能与port映射同时使用,逻辑比较容易理解,本身已经使用了本地网络,所有端口是与宿主机同步,再作端口映射是本机映射到本机,脱了裤子放屁,多此一举。
# network_mode: 'host'
# nginx:
# restart: always
# image: nginx
# container_name: jeecg-boot-ui
# ports:
# - '80:80'
# volumes:
# - /home/docker/iotps/nginx/html:/home/iotps/html
# - /home/docker/iotps/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
# - /home/docker/iotps/nginx/logs:/var/log/nginx
# - /home/docker/iotps/nginx/conf.d:/etc/nginx/conf.d
# environment:
# - TZ=Asia/Shanghai
# links:
# - jeecg-boot
# depends_on:
# - jeecg-boot
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wanghehe/forallcn-iotps.git
git@gitee.com:wanghehe/forallcn-iotps.git
wanghehe
forallcn-iotps
forallcn-iotps
master

搜索帮助