# For more information: https://laravel.com/docs/sail version: '3' services: minio: image: minio/minio command: server /data ports: - 9000:9000 environment: MINIO_ACCESS_KEY: root MINIO_SECRET_KEY: minioroot networks: - sail commander: image: rediscommander/redis-commander:latest environment: - REDIS_HOST=redis - REDIS_PORT=6379 - HTTP_USER=root - HTTP_PASSWORD=root - REDIS_PASSWORD=root ports: - 8081:8081 depends_on: - redis networks: - sail redis: image: redis:latest ports: - 6379:6379 command: redis-server --requirepass root volumes: - redis-data:/data networks: - sail laravel.test: build: context: ./vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: '${WWWGROUP}' image: sail-8.0/app ports: - '${APP_PORT:-80}:80' environment: WWWUSER: '${WWWUSER}' LARAVEL_SAIL: 1 volumes: - '.:/var/www/html' networks: - sail depends_on: - mysql mysql: image: 'mysql:8.0' ports: - '${FORWARD_DB_PORT:-3306}:3306' environment: MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' MYSQL_DATABASE: '${DB_DATABASE}' MYSQL_USER: '${DB_USERNAME}' MYSQL_PASSWORD: '${DB_PASSWORD}' MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' volumes: - 'sailmysql:/var/lib/mysql' networks: - sail healthcheck: test: ["CMD", "mysqladmin", "ping"] myadmin: image: 'phpmyadmin:latest' ports: - 8080:80 environment: MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' links: - "mysql:db" depends_on: - mysql networks: - sail networks: sail: driver: bridge volumes: redis-data: driver: local sailmysql: driver: local