forked from Hounslow-Connect/api
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
93 lines (83 loc) · 2.02 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
services:
app:
image: connectedplaces/api/app
build:
context: ./docker/app
dockerfile: Dockerfile
volumes:
- .:/var/www/html
depends_on:
- mysql
- redis
- elasticsearch
command: /usr/bin/supervisord
queue-worker:
image: connectedplaces/api/app
volumes:
- .:/var/www/html
command: php artisan queue:work --queue=default,search,notifications --tries=1
depends_on:
- mysql
- redis
- elasticsearch
scheduler:
image: connectedplaces/api/app
volumes:
- .:/var/www/html
command: php artisan ck:run-scheduler
depends_on:
- mysql
- redis
- elasticsearch
node:
image: connectedplaces/api/node
build:
context: ./docker/node
dockerfile: Dockerfile
volumes:
- .:/var/www/html
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASS}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
volumes:
- mysql-data:/var/lib/mysql
mysql-testing:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASS}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
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: connectedplaces/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