代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。