-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.28 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
45
46
47
version: "3.5"
services:
mq-mysql:
image: mysql:5.7.22
hostname: mq-mysql
container_name: mq-mysql
environment:
MYSQL_DATABASE: laravel
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
expose:
- 3306
volumes:
- ./database/mysql:/docker-entrypoint-initdb.d
mq-rabbitmq:
image: rabbitmq:3.9.10-management
container_name: mq-rabbitmq
hostname: mq-rabbitmq
environment:
- RABBITMQ_DEFAULT_VHOST=/
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=root
ports:
- "5672:5672"
- "15672:15672"
expose:
- 5672
- 15672
# volumes:
# - ./storage/rabbitmq/data:/var/lib/rabbitmq/
# - ./storage/logs/rabbitmq/log:/var/log/rabbitmq
mq-producer:
build:
dockerfile: Dockerfile
context: ./
hostname: mq-producer
container_name: mq-producer
working_dir: /var/www/html/
image: php:8.1-fpm-alpine
volumes:
- ./:/var/www/html/
ports:
- "9001:8000"
restart: always
command: |
sh -c "php artisan serve --host=0.0.0.0"