Skip to content

Commit

Permalink
Add rabbitmq service
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Dec 2, 2024
1 parent 779ae3b commit 05eca1b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MINIO_IMAGE_TAG=RELEASE.2023-01-02T09-40-09Z
MYSQL_IMAGE_TAG=8.4.3
ORACLE_IMAGE_TAG=11.2.0.2-slim
PORTAINER_IMAGE_TAG=2.16.2
RABBITMQ_IMAGE_TAG=3.12.1-management
RABBITMQ_IMAGE_TAG=4.0.4-management
REDIS_IMAGE_TAG=7.4.1
REDISEARCH_IMAGE_TAG=2.0.6
REDIS_STACK_IMAGE_TAG=7.2.0-v10
Expand Down
2 changes: 2 additions & 0 deletions rabbitmq/.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RABBITMQ_DEFAULT_USER=guest
RABBITMQ_DEFAULT_PASS=guest
1 change: 1 addition & 0 deletions rabbitmq/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
rabbitmq.conf
!rabbitmq.conf.example
/data
18 changes: 18 additions & 0 deletions rabbitmq/compose.rabbitmq.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
volumes:
common-rabbitmq:
name: 'common-rabbitmq'

services:
rabbitmq:
image: rabbitmq:${RABBITMQ_IMAGE_TAG:-3.12.1-management}
env_file:
- .env
networks:
common-net:
aliases:
- common-rabbitmq
# ports:
# - 127.0.0.1:${RABBITMQ_PUBLISH_PORT:-15672}:15672
volumes:
- common-rabbitmq:/var/lib/rabbitmq
# - ./data:/var/lib/rabbitmq
6 changes: 6 additions & 0 deletions rabbitmq/copy-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Copy docker compose example files
cp --update=none .example.env .env
cp --update=none compose.rabbitmq.example.yml compose.rabbitmq.yml
cp --update=none rabbitmq.conf.example rabbitmq.conf

0 comments on commit 05eca1b

Please sign in to comment.