Skip to content

Commit d9f77ad

Browse files
authored
moved username and password into config file + mounted config file in docker compose (#370)
1 parent f3564a9 commit d9f77ad

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

config/rabbitmq.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
default_user = rabbit_adm
2+
default_pass = R4bb!7_4DM_p4SS

docker-compose.provider.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ services:
7171

7272
# -------------------- RABBIT-MQ -------------------------------------------
7373
rabbitmq-provider:
74-
image: rabbitmq:3.8-management-alpine
74+
image: rabbitmq:3-management-alpine
7575
environment:
7676
RABBITMQ_ERLANG_COOKIE: 'S0m3_R4bBi7_C0ok13'
77-
RABBITMQ_DEFAULT_USER: 'rabbit_adm'
78-
RABBITMQ_DEFAULT_PASS: 'R4bb!7_4DM_p4SS'
77+
volumes:
78+
- ./config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
7979
ports:
8080
- "15672:15672"
8181
- "5672:5672"

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ services:
318318

319319
# -------------------- RABBIT-MQ -------------------------------------------
320320
rabbitmq:
321-
image: rabbitmq:3.8-management-alpine
321+
image: rabbitmq:3-management-alpine
322322
environment:
323323
RABBITMQ_ERLANG_COOKIE: 'S0m3_R4bBi7_C0ok13'
324-
RABBITMQ_DEFAULT_USER: 'rabbit_adm'
325-
RABBITMQ_DEFAULT_PASS: 'R4bb!7_4DM_p4SS'
324+
volumes:
325+
- ./config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
326326
ports:
327327
- "15672:15672"
328328
- "5672:5672"

0 commit comments

Comments
 (0)