You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB
YAML

version: '3.4'
services:
# Dapr Actor 服务
redis:
container_name: redis
hostname: redis
image: "redis:6"
restart: always
ports:
- 6379:6379
environment:
TZ: Asia/Shanghai
volumes:
- ../Redis/redis.conf:/etc/redis/redis.conf
- ../Redis/data:/data
- ../Redis/logs:/logs
command: ["redis-server","/etc/redis/redis.conf"]
networks:
- cache
rabbitmq:
container_name: rabbitmq
hostname: rabbitmq
image: "rabbitmq:3.9.26-management"
restart: always
ports:
- 5672:5672
- 15672:15672
environment:
TZ: Asia/Shanghai
networks:
- mq
mysql:
container_name: mysql
hostname: mysql
image: "mysql:8"
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: lsdb
TZ: Asia/Shanghai
volumes:
- ../MySQL/Data:/var/lib/mysql
- ../Mysql/Conf:/etc/mysql/conf.d/
command:
--lower_case_table_names=1
networks:
- db
networks:
db:
external: true
mq:
external: true
cache:
external: true