-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1.09 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
38
39
40
41
42
43
44
#
# Examples of how to run services with Docker Compose:
#
# - redis
# - rabbitmq
#
version: "3.8"
services:
redis:
image: "redis:alpine"
command: redis-server --requirepass password
ports:
- "6379:6379"
volumes:
- ./.docker-data/redis-data:/var/lib/redis
- ./.docker-data/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- app
environment:
- REDIS_REPLICATION_MODE=master
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
volumes:
# Download template from here:
# https://github.com/rabbitmq/rabbitmq-server/blob/v3.9.1/deps/rabbit/docs/rabbitmq.conf.example
- ./.docker-data/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.config
- ./.docker-data/rabbitmq/logs/:/var/log/rabbitmq/:ro
env_file: ./app.env
networks:
- app
labels:
- "com.centurylinklabs.watchtower.enable=true"
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
networks:
app:
driver: bridge