2023-02-07 09:40:37 +08:00
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
redis:
|
2023-02-07 14:30:06 +08:00
|
|
|
image: redis:7.0.8
|
2023-02-07 09:40:37 +08:00
|
|
|
container_name: forest-ce-redis
|
|
|
|
sysctls:
|
|
|
|
- net.core.somaxconn=1024
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
volumes:
|
|
|
|
- "redis-volume:/data"
|
|
|
|
command: redis-server --requirepass d9d2j9w2 --appendonly yes
|
|
|
|
environment:
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
mysql:
|
2023-02-07 14:30:06 +08:00
|
|
|
image: mysql:8.0.29
|
2023-02-07 09:40:37 +08:00
|
|
|
container_name: forest-ce-mysql
|
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
|
|
|
volumes:
|
2023-02-07 14:30:06 +08:00
|
|
|
- "mysql8-volume:/etc/mysql/conf.d"
|
|
|
|
- "mysql8-volume:/var/lib/mysql"
|
|
|
|
- "mysql8-volume:/logs"
|
2023-02-07 09:40:37 +08:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=XzHvhX4CDaN696oQAXdmlcsrqgWbkxRl
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
volumes:
|
2023-02-07 14:30:06 +08:00
|
|
|
mysql8-volume:
|
2023-02-07 09:40:37 +08:00
|
|
|
redis-volume:
|