forked from keyvan-montazeri/rabbitmq-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 974 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 974 Bytes
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
version: '2'
services:
mysql:
image: mysql:8
hostname: mysql
restart: unless-stopped
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'Y'
volumes:
- ./db:/var/lib/mysql:rw
- ./mysql:/docker-entrypoint-initdb.d
ports:
- "4006:3306"
rabbitmq:
image: docker.io/bitnami/rabbitmq:3.8
ports:
- '4369:4369'
- '5672:5672'
- '25672:25672'
- '15672:15672'
mq:
build:
context: .
dockerfile: ./mq/Dockerfile
hostname: mq
depends_on:
- mysql
- rabbitmq
volumes:
- ./mq:/app
ports:
- "8000:8000"
mq_workers:
build:
context: .
dockerfile: ./mq_workers/Dockerfile
hostname: mq_workers
depends_on:
- mq
volumes:
- ./mq_workers:/app