-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrabbitDb.yaml
43 lines (43 loc) · 1.25 KB
/
rabbitDb.yaml
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
33
34
35
36
37
38
39
40
41
42
43
version: "3.6"
services:
rabbitmq:
image: 'rabbitmq:3.6-management-alpine'
ports:
- '5672:5672'
- '15672:15672'
environment:
# The location of the RabbitMQ server. "amqp" is the protocol;
# "rabbitmq" is the hostname. Note that there is not a guarantee
# that the server will start first! Telling the pika client library
# to try multiple times gets around this ordering issue.
AMQP_URL: 'amqp://rabbitmq?connection_attempts=5&retry_delay=5'
RABBITMQ_DEFAULT_USER: "admin"
RABBITMQ_DEFAULT_PASS: "admin"
volumes:
- thesisRabbitVolume:/var/lib/rabbitmq
postgres:
image: postgres:12.2-alpine
volumes:
- thesisPostgresVolume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
ports:
- 5432:5432
redis:
image: "redis:alpine"
command: redis-server --requirepass netorRedisPassword
ports:
- "6379:6379"
volumes:
- thesisRedisVolume:/var/lib/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
volumes:
thesisPostgresVolume:
external: false
thesisRabbitVolume:
external: false
thesisRedisVolume:
external: false