version: '3.7' services: wordpress: image: wordpress:latest ports: - "8080:80" volumes: - wordpress_data:/var/www/html environment: WORDPRESS_DB_HOST: mysql WORDPRESS_DB_NAME: wordpress WORDPRESS_DB_USER: user WORDPRESS_DB_PASSWORD: password depends_on: - mysql mysql: image: mysql:latest environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: wordpress MYSQL_USER: user MYSQL_PASSWORD: password rabbitmq: image: rabbitmq:3.12.8-management environment: RABBITMQ_DEFAULT_USER: admin RABBITMQ_DEFAULT_PASS: admin ports: - 15672:15672 volumes: - rabbitmq-data:/var/lib/rabbitmq volumes: wordpress_data: rabbitmq-data: