rabitmq docker added
This commit is contained in:
parent
adc62a94e9
commit
fa04e992f3
4 changed files with 21 additions and 1 deletions
|
@ -8,3 +8,7 @@ DB_USERNAME=user
|
||||||
DB_PASSWORD=12345
|
DB_PASSWORD=12345
|
||||||
DB_NAME=user_db
|
DB_NAME=user_db
|
||||||
DB_USER_ROLE=readWrite
|
DB_USER_ROLE=readWrite
|
||||||
|
|
||||||
|
## RABITMQ ##
|
||||||
|
RABBITMQ_DEFAULT_USER=guest
|
||||||
|
RABBITMQ_DEFAULT_PASS=guest
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
- 27017:27017
|
- 27017:27017
|
||||||
volumes:
|
volumes:
|
||||||
- mongodb_vol:/data/db
|
- mongodb_vol:/data/db
|
||||||
- ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
|
- ./mongo-init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
|
||||||
environment:
|
environment:
|
||||||
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
|
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
|
||||||
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
|
||||||
|
@ -15,5 +15,21 @@ services:
|
||||||
platform: linux/arm64/v8
|
platform: linux/arm64/v8
|
||||||
expose:
|
expose:
|
||||||
- 27017
|
- 27017
|
||||||
|
rabitmq:
|
||||||
|
image: arm64v8/rabbitmq:3.8.3-management
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5672:5672
|
||||||
|
- 15672:15672
|
||||||
|
volumes:
|
||||||
|
- rabbitmq_vol:/var/lib/rabbitmq
|
||||||
|
environment:
|
||||||
|
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
|
||||||
|
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
|
||||||
|
platform: linux/arm64/v8
|
||||||
|
expose:
|
||||||
|
- 5672
|
||||||
|
- 15672
|
||||||
volumes:
|
volumes:
|
||||||
mongodb_vol:
|
mongodb_vol:
|
||||||
|
rabbitmq_vol:
|
||||||
|
|
Loading…
Reference in a new issue