wms-gj-java/hkg-docker/docker-compose.yaml
2024-10-29 16:34:09 +08:00

40 lines
1008 B
YAML

services:
hkg-mysql:
image: mysql:5.7.44
hostname: hkg-mysql
container_name: hkg-mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
LANG: C.UTF-8
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: 123456
volumes:
- ./mysql-data:/var/lib/mysql
hkg-redis:
image: redis:6.2.16
hostname: hkg-redis
container_name: hkg-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./redis-data:/data
command: redis-server --bind 0.0.0.0 --daemonize NO --protected-mode NO --databases 1 --dir /data --appendonly yes --requirepass 123456
hkg-minio:
image: minio/minio
hostname: hkg-minio
container_name: hkg-minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
TZ: Asia/Shanghai
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./minio-data:/data
command: server /data --console-address ":9001"