-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (31 loc) · 1.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3'
services:
postgres-api:
image: postgres:14.3
container_name: email-verifier-database
ports:
- '5555:5432'
environment:
POSTGRES_DB: 'registration_dev'
POSTGRES_USER: 'emailverifier'
POSTGRES_PASSWORD: 'emailverifier'
ADDITIONAL_POSTGRES_DBS: 'registration_test,notification_dev,notification_test'
volumes:
- ./databases/init-scripts:/docker-entrypoint-initdb.d
- ./.docker-data/.pg-data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.10.5-management
container_name: email-verifier-rabbit
ports:
- '5672:5672'
- '15672:15672'
environment:
- RABBIT_URL=amqp://guest:guest@localhost:5672/
- DATABASE_URL=postgresql://emailverifier:emailverifier@localhost:5555/registration_dev
- REGISTRATION_REQUEST_QUEUE=registration-request
- REGISTRATION_REQUEST_ROUTING_KEY=42
volumes:
- ./.docker-data/.rabbit-data:/var/lib/rabbitmq/
- ./.docker-data/.rabbit-log:/var/log/rabbitmq
command: >
bash -c "rabbitmq-plugins enable rabbitmq_consistent_hash_exchange && rabbitmq-server"