services: mysql: image: mysql:8.0 container_name: wx_service_mysql restart: always environment: MYSQL_ROOT_PASSWORD: root_password MYSQL_DATABASE: wx_service ports: - "3306:3306" volumes: - mysql_data:/var/lib/mysql command: --default-authentication-plugin=mysql_native_password --innodb-buffer-pool-size=64M redis: image: redis:7-alpine container_name: wx_service_redis restart: always ports: - "6379:6379" volumes: - redis_data:/data command: redis-server --appendonly yes --maxmemory 64mb --maxmemory-policy allkeys-lru volumes: mysql_data: redis_data: