-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yaml
55 lines (55 loc) · 1.29 KB
/
docker-compose.yaml
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
version: '3.9'
services:
redis:
image: redis
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
mysql:
image: mariadb
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_DATABASE: db
app:
build: .docker/php
init: true
env_file: .env.docker.dist
ports:
- "8000:80"
volumes:
- ./:/var/www/html
async-commands-consumer:
build: .docker/php-cli
profiles: [ "async-commands" ]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html
command: "php bin/console messenger:consume commands_async -vv"
volumes:
- ./:/var/www/html
async-events-consumer:
build: .docker/php-cli
profiles: [ "async-events" ]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html
command: "php bin/console messenger:consume events_async -vv"
volumes:
- ./:/var/www/html
async-projections-consumer:
build: .docker/php-cli
profiles: [ "async-projections" ]
init: true
env_file: .env.docker.dist
working_dir: /var/www/html
command: "php bin/console messenger:consume projections_async -vv"
volumes:
- ./:/var/www/html