-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (66 loc) · 1.48 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
64
65
66
67
68
69
70
71
72
73
74
version: '2.2'
services:
# apache front
web:
extends:
service: wamp-service
file: common.yml
environment:
- LOG_FACILITY=web
volumes:
- ./config/vhost.conf:/etc/apache2/sites-enabled/000-default.conf:ro
depends_on:
- wamp-router
- redis
ports:
- "80:80"
# php wamp server
wamp-router:
extends:
service: wamp-service
file: common.yml
entrypoint: /usr/src/app/entrypoints/run_artisan.sh
command: wamp:router:start
environment:
- LOG_FACILITY=router
expose:
- "9901"
# php queue worker
message-worker:
extends:
service: wamp-service
file: common.yml
entrypoint: /usr/src/app/entrypoints/run_artisan.sh
command: wamp:queue:work
depends_on:
- wamp-router
- redis
- mysql
scale: 2 # depending on the workload
environment:
- LOG_FACILITY=dispatcher
# command scheduler
scheduler:
extends:
service: wamp-service
file: common.yml
command: /usr/src/app/entrypoints/run_scheduler.sh
depends_on:
- mysql
environment:
- LOG_FACILITY=scheduler
# storage
redis:
image: redis:5.0-alpine3.10
restart: always
logging:
driver: "json-file"
options:
max-file: '2'
max-size: 10m
mysql:
image: mariadb:10.2.27-bionic
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: homestead