-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
95 lines (84 loc) · 2.03 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "3"
services:
app:
image: one-hounslow-connect/api/app
build:
context: ./docker/app
dockerfile: Dockerfile
volumes:
- .:/var/www/html
depends_on:
- mysql
- redis
- elasticsearch
command: /usr/bin/supervisord
queue-worker:
image: one-hounslow-connect/api/app
volumes:
- .:/var/www/html
command: php artisan queue:work --queue=default,search,notifications --tries=1
depends_on:
- mysql
- redis
- elasticsearch
scheduler:
image: one-hounslow-connect/api/app
volumes:
- .:/var/www/html
command: php artisan ck:run-scheduler
depends_on:
- mysql
- redis
- elasticsearch
node:
image: one-hounslow-connect/api/node
build:
context: ./docker/node
dockerfile: Dockerfile
volumes:
- .:/var/www/html
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASS}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASS}"
volumes:
- mysql-data:/var/lib/mysql
mysql-testing:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASS}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASS}"
command: mysqld --general-log=1 --general-log-file=/var/log/mysql/general-log.log
redis:
image: grokzen/redis-cluster:6.0.16
volumes:
- redis-data:/data
redis-testing:
image: grokzen/redis-cluster:6.0.16
elasticsearch:
image: elasticsearch:7.9.3
environment:
- "discovery.type=single-node"
- "xpack.ml.enabled=false"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
troposphere:
image: one-hounslow-connect/api/troposphere
build:
context: ./docker/troposphere
dockerfile: Dockerfile
volumes:
- ./aws:/tmp
command: python ${CFN_TEMPLATE}.py
volumes:
mysql-data:
driver: local
redis-data:
driver: local
elasticsearch-data:
driver: local