7 Star 16 Fork 20

静水深流/linkwechat-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 3.99 KB
一键复制 编辑 原始数据 按行查看 历史
水库浪子 提交于 2022-12-12 17:35 . 新增mysql相关配置
version : '3.8'
services:
lw-nacos:
container_name: lw-nacos
image: nacos/nacos-server
build:
context: ./nacos
environment:
- MODE=standalone
volumes:
- ./nacos/logs/:/home/nacos/logs
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
ports:
- "8848:8848"
- "9848:9848"
- "9849:9849"
depends_on:
- lw-mysql
lw-mysql:
container_name: lw-mysql
image: mysql:5.7
build:
context: ./mysql
ports:
- "3306:3306"
volumes:
- ./mysql/conf:/etc/mysql/conf.d
- ./mysql/logs:/logs
- ./mysql/data:/var/lib/mysql
- ./mysql/custom.cnf:/etc/mysql/conf.d/custom.cnf
command: [
'mysqld',
'--innodb-buffer-pool-size=80M',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-time-zone=+8:00',
'--lower-case-table-names=1'
]
environment:
MYSQL_DATABASE: 'lw-cloud'
MYSQL_ROOT_PASSWORD: password
lw-xxl-job:
image: xuxueli/xxl-job-admin:2.3.1
container_name: lw-xxl-job
ports:
- "18080:8080"
environment:
PARAMS: '--server.servlet.context-path=/xxl-job-admin --spring.datasource.url=jdbc:mysql://lw-mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root --spring.datasource.password=password --xxl.job.accessToken=default_token'
depends_on:
- lw-mysql
lw-rabbitmq:
container_name: lw-rabbitmq
build:
context: ./rabbitmq
restart: always
ports:
- 15672:15672
- 5672:5672
volumes:
- ./rabbitmq/data:/var/lib/rabbitmq
lw-redis:
container_name: lw-redis
image: redis
build:
context: ./redis
ports:
- "6379:6379"
volumes:
- ./redis/conf/redis.conf:/home/lw/redis/redis.conf
- ./redis/data:/data
command: redis-server /home/lw/redis/redis.conf
lw-nginx:
container_name: lw-nginx
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./nginx/html/pc:/usr/share/nginx/html/pc
- ./nginx/html/mobile:/usr/share/nginx/html/mobile
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/logs:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- lw-gateway
links:
- lw-gateway
lw-gateway:
container_name: lw-gateway
build:
context: ./lw/gateway
dockerfile: dockerfile
ports:
- "8080:8080"
depends_on:
- lw-redis
links:
- lw-redis
lw-auth:
container_name: lw-auth
build:
context: ./lw/auth
dockerfile: dockerfile
ports:
- "9200:9200"
depends_on:
- lw-redis
links:
- lw-redis
lw-modules-api:
container_name: lw-modules-api
build:
context: ./lw/modules/api
dockerfile: dockerfile
ports:
- "9201:9201"
depends_on:
- lw-redis
- lw-mysql
links:
- lw-redis
- lw-mysql
lw-modules-file:
container_name: lw-modules-file
build:
context: ./lw/modules/file
dockerfile: dockerfile
ports:
- "9101:9101"
depends_on:
- lw-redis
- lw-mysql
links:
- lw-redis
- lw-mysql
lw-modules-scheduler:
container_name: lw-modules-scheduler
build:
context: ./lw/modules/scheduler
dockerfile: dockerfile
ports:
- "9400:9400"
- "18081:18081"
depends_on:
- lw-redis
- lw-mysql
links:
- lw-redis
- lw-mysql
lw-modules-wecom:
container_name: lw-modules-wecom
build:
context: ./lw/modules/wecom
dockerfile: dockerfile
ports:
- "9203:9203"
depends_on:
- lw-redis
- lw-mysql
links:
- lw-redis
- lw-mysql
lw-modules-wx:
container_name: lw-modules-wx
build:
context: ./lw/modules/wx
dockerfile: dockerfile
ports:
- "9204:9204"
depends_on:
- lw-redis
- lw-mysql
links:
- lw-redis
- lw-mysql
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/LinkWeChat_admin/linkwechat-docker.git
[email protected]:LinkWeChat_admin/linkwechat-docker.git
LinkWeChat_admin
linkwechat-docker
linkwechat-docker
master

搜索帮助