version: "3.7" services: mysql: image: mysql:5.7 container_name: mysql hostname: mysql restart: always ports: - 3306:3306 environment: - MYSQL_ROOT_PASSWORD=Qx#123456 volumes: - /opt/etc/mysql:/etc/mysql/conf.d - /opt/mysql:/var/lib/mysql redis: image: rpi.it5000.com:5000/redis container_name: redis restart: always ports: - 6379:6379