-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (60 loc) · 1.61 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
58
59
60
61
62
63
version: '3'
services:
scheduler:
image: 'formapro/nginx-php-fpm:latest-all-exts'
working_dir: '/app'
entrypoint: 'bin/console quartz:scheduler -vvv'
restart: 'on-failure'
depends_on:
- 'mongo'
- 'rabbitmq'
volumes:
- './:/app:cached'
# - './docker/xdebug.ini:/etc/php/7.0/mods-available/xdebug.ini'
environment:
PHP_IDE_CONFIG: 'serverName=quartz.dev'
XDEBUG_CONFIG: 'idekey=PHPSTORM'
MONGODB_HOST: 'mongo'
MONGODB_PORT: '27017'
MONGODB_DB: 'quartz'
RABBITMQ_HOST: 'rabbitmq'
RABBITMQ_PORT: '5672'
RABBITMQ_USER: 'guest'
RABBITMQ_PASS: 'guest'
RABBITMQ_VHOST: 'quartz'
worker:
image: 'formapro/nginx-php-fpm:latest-all-exts'
working_dir: '/app'
entrypoint: 'bin/console enqueue:consume -vvv'
restart: 'on-failure'
depends_on:
- 'mongo'
- 'rabbitmq'
volumes:
- './:/app:cached'
# - './docker/xdebug.ini:/etc/php/7.0/mods-available/xdebug.ini'
environment:
PHP_IDE_CONFIG: 'serverName=quartz.dev'
XDEBUG_CONFIG: 'idekey=PHPSTORM'
MONGODB_HOST: 'mongo'
MONGODB_PORT: '27017'
MONGODB_DB: 'quartz'
RABBITMQ_HOST: 'rabbitmq'
RABBITMQ_PORT: '5672'
RABBITMQ_USER: 'guest'
RABBITMQ_PASS: 'guest'
RABBITMQ_VHOST: 'quartz'
mongo:
image: 'mongo:3'
restart: 'no'
ports:
- '27017:27017'
rabbitmq:
image: 'enqueue/rabbitmq:latest'
restart: 'no'
ports:
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: 'guest'
RABBITMQ_DEFAULT_PASS: 'guest'
RABBITMQ_DEFAULT_VHOST: 'quartz'