forest/docker/dev/docker-compose.yml
2023-04-25 15:15:37 +08:00

34 lines
919 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '2.1'
services:
redis:
image: redis:7.0.8
container_name: forest-ce-redis
sysctls:
- net.core.somaxconn=1024
ports:
- "6379:6379"
volumes:
- "redis-volume:/data"
# default password: d9d2j9w2
command: redis-server --requirepass d9d2j9w2 --appendonly yes
environment:
- TZ=Asia/Shanghai
mysql:
image: mysql:8.0.29
container_name: forest-ce-mysql
ports:
- "3306:3306"
volumes:
- "./forest.sql:/forest.sql"
- "mysql8-volume:/etc/mysql/conf.d"
- "mysql8-volume:/var/lib/mysql"
- "mysql8-volume:/logs"
environment:
# user: rootpasswordXzHvhX4CDaN696oQAXdmlcsrqgWbkxRl
- MYSQL_ROOT_PASSWORD=XzHvhX4CDaN696oQAXdmlcsrqgWbkxRl
- TZ=Asia/Shanghai
command: ["--default-authentication-plugin=mysql_native_password", "--init-file=/forest.sql"]
volumes:
mysql8-volume:
redis-volume: