-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (53 loc) · 1.36 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
48
49
50
51
52
53
54
55
56
57
services:
producer:
build:
context: .
dockerfile: .docker/apache/Dockerfile
container_name: producer
ports:
- "8000:80"
volumes:
- .docker/config/vhosts:/etc/apache2/sites-enabled:ro
- ./:/home/wwwroot/aos
depends_on:
- php
consumer:
build:
context: .
dockerfile: .docker/apache/Dockerfile
container_name: consumer
ports:
- "8080:80"
volumes:
- .docker/config/vhosts:/etc/apache2/sites-enabled:ro
- ./:/home/wwwroot/aos
depends_on:
- php
php:
build:
context: .docker/php
dockerfile: Dockerfile
container_name: php_fpm
user: root
volumes:
- ./:/home/wwwroot/aos:rw
environment:
- MESSENGER_TRANSPORT_DSN=amqp://guest:guest@broker_rabbitmq:5672/%2f/messages
- EXCHANGE_NAME=high
- QUEUE_NAME=messages_high
depends_on:
- rabbitmq
ports:
- "9000:9000"
- "9003:9003"
rabbitmq:
build:
context: .docker/rabbitmq
dockerfile: Dockerfile
container_name: broker_rabbitmq
ports:
- "15672:15672"
volumes:
- rabbitmq:/var/lib/rabbitmq:cached
volumes:
rabbitmq: