-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 1.01 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
33
34
35
36
37
version: "3"
services:
rabbitmq:
image: rabbitmq:3.8-management
container_name: rabbitmq
hostname: "rabbitMQ_proto_1"
env_file: prototype.env
networks:
- "iotstack"
ports:
# - "1883:1883" # MQTT Port
- "5672:5672" # AMQP Port
- "15672:15672" # Management UI
volumes:
- ./rabbitmq/plugins/enabled_plugins:/etc/rabbitmq/enabled_plugins
- ./rabbitmq/data:/var/lib/rabbitmq/data
- ./rabbitmq/log:/var/log/rabbitmq/log
redis:
image: redis:6.2-alpine # Use Alpine Image
container_name: redis
privileged: true # Needed when using Linux Alpine Images
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
volumes:
- ./redis:/usr/local/etc/redis
- redis_data:/data
networks:
- "iotstack"
volumes:
redis_data:
networks:
iotstack:
external: true