/
docker-compose.yml
132 lines (119 loc) · 2.34 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
lbhaproxy:
extends:
file: ./docker/common-services.yml
service: lbhaproxy
links:
- api
- app
- mailcatcher
env_file:
- ./docker/.local.env
#logviewer:
# extends:
# file: ./docker/common-services.yml
# service: logviewer
# volumes_from:
# - data
# env_file:
# - ./docker/.local.env
database:
extends:
file: ./docker/common-services.yml
service: database
ports:
- "5432:5432"
env_file:
- ./docker/.local.env
vanilladatabase:
extends:
file: ./docker/common-services.yml
service: vanilladatabase
ports:
- "3306:3306"
env_file:
- ./docker/.local.env
cache:
extends:
file: ./docker/common-services.yml
service: cache
ports:
- "6379:6379"
env_file:
- ./docker/.local.env
elasticsearch:
extends:
file: ./docker/common-services.yml
service: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
env_file:
- ./docker/.local.env
queue:
extends:
file: ./docker/common-services.yml
service: queue
env_file:
- ./docker/.local.env
api:
extends:
file: ./docker/common-services.yml
service: api
links:
- mailcatcher
- queue
- cache
- database
env_file:
- ./docker/.local.env
environment:
- VIRTUAL_HOST=local.api.spira.io, local.spira.io/api/*
- NGINX_VHOSTS=/data/docker/config/vhosts/*.conf
- EXCLUDE_PORTS=9000
app:
extends:
file: ./docker/common-services.yml
service: app
env_file:
- ./docker/.local.env
environment:
- VIRTUAL_HOST=local.spira.io
- NGINX_VHOSTS=/data/docker/config/vhosts/*.conf
- EXCLUDE_PORTS=9000
queuerunner:
extends:
file: ./docker/common-services.yml
service: queuerunner
links:
- mailcatcher
- queue
- cache
- database
volumes_from:
- api
env_file:
- ./docker/.local.env
mailcatcher:
extends:
file: ./docker/common-services.yml
service: mailcatcher
env_file:
- ./docker/.local.env
environment:
- VIRTUAL_HOST=local.mailcatcher.spira.io
- EXCLUDE_PORTS=1025
devtools:
extends:
file: ./docker/common-services.yml
service: devtools
links:
- mailcatcher:mailcatcher
- database:database
- vanilladatabase:vanilladatabase
- cache:cache
- queue:queue
- elasticsearch:elasticsearch
volumes:
- /cache:/cache
env_file:
- ./docker/.local.env