Skip to content
Snippets Groups Projects
Commit 659bda8e authored by ncastejon's avatar ncastejon
Browse files

Add rabbitmq docker image

parent 38e4326f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -5,4 +5,17 @@ services:
build: .
ports:
- 3001:3000
\ No newline at end of file
rabbitmq:
image: 'bitnami/rabbitmq:latest'
ports:
- "5672:5672" # standar port for communication
- "15672:15672" # graphique interface
environment:
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
volumes:
- rabbitmqPersistence:/bitnami
volumes:
rabbitmqPersistence:
\ No newline at end of file
......@@ -6,7 +6,7 @@ import { Email } from './email';
export class EmailService {
send(email: Email) {
const rabbitmqUrl = 'amqp://user:password123@0.0.0.0:5672';
const rabbitmqUrl = 'amqp://user:password123@rabbitmq:5672';
const mailerQueue = 'portail-data-send-email';
// Connect to rabbitmq
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment