Skip to content

Instantly share code, notes, and snippets.

@DzenDyn
Created February 3, 2026 07:40
Show Gist options
  • Select an option

  • Save DzenDyn/0b03cc63c2e368ccdff88b8ff8e66ae6 to your computer and use it in GitHub Desktop.

Select an option

Save DzenDyn/0b03cc63c2e368ccdff88b8ff8e66ae6 to your computer and use it in GitHub Desktop.
Local RabbitMQ
services:
rabbit:
image: "rabbitmq:3.11.10-management"
restart: unless-stopped
container_name: rabbit_local
ports:
- "45671:15671"
- "45672:15672"
- "55671:5671"
- "55672:5672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
volumes:
- "rabbit_local:/var/lib/rabbitmq"
volumes:
rabbit_local:
name: rabbit_local
@DzenDyn
Copy link
Author

DzenDyn commented Feb 3, 2026

Сохраните файл в отдельную директорию и назовите файл docker-compose.yaml
Откройте командную строку и в директории с файлом выполните: docker compose up -d
Для остановки в этой же директории выполните: docker compose down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment