-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.dist
212 lines (196 loc) · 5.08 KB
/
docker-compose.yml.dist
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
version: '3'
services:
nginx-yves:
image: "${REGISTRY_URL}/fond-of-spryker/nginx:1.16-yves-xdebug"
ports:
- 80
links:
- php
- php-xdebug
volumes:
- nfsmount_spryker_name:/var/www/spryker/releases/current
environment:
VIRTUAL_HOST: dev.domain.com
network_mode: bridge
nginx-glue:
image: "${REGISTRY_URL}/fond-of-spryker/nginx:1.16-glue-xdebug"
ports:
- 80
links:
- php
- php-xdebug
volumes:
- nfsmount_spryker_name:/var/www/spryker/releases/current
environment:
VIRTUAL_HOST: glue.dev.domain.com
network_mode: bridge
nginx-zed:
image: "${REGISTRY_URL}/fond-of-spryker/nginx:1.16-zed-xdebug"
ports:
- 80
links:
- php
- php-xdebug
volumes:
- nfsmount_spryker_name:/var/www/spryker/releases/current
environment:
VIRTUAL_HOST: zed.dev.domain.com
network_mode: bridge
php:
image: "${REGISTRY_URL}/fond-of-spryker/php:${PHP_VERSION}-fpm-dev"
ports:
- 9000
links:
- db
- elasticsearch
- rabbitmq
- redis
- jenkins
- mailcatcher
env_file:
- db.dev.env
- rabbitmq.dev.env
environment:
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
JENKINS_URL: "http://jenkins:8080/"
POSTGRES_HOST: db
POSTGRES_PORT: 5432
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_API_HOST: rabbitmq
RABBITMQ_API_PORT: 15672
REDIS_HOST: redis
REDIS_PORT: 6379
RECIPE_NAME: development
volumes:
- nfsmount_spryker_name:/var/www/spryker/releases/current
- nfsmount_spryker_name_composer:/root/.composer
- nfsmount_spryker_name_npm:/root/.npm
extra_hosts:
- "zed.dev.XXX.com:${EXTRA_HOST_IP}"
- "glue.dev.XXX.com:${EXTRA_HOST_IP}"
- "dev.XXX.com:${EXTRA_HOST_IP}"
network_mode: bridge
php-xdebug:
image: "${REGISTRY_URL}/fond-of-spryker/php:${PHP_VERSION}-fpm-xdebug"
ports:
- 9000
links:
- db
- elasticsearch
- rabbitmq
- redis
- jenkins
- mailcatcher
env_file:
- db.dev.env
- rabbitmq.dev.env
environment:
ELASTICSEARCH_HOST: elasticsearch
ELASTICSEARCH_PORT: 9200
JENKINS_URL: "http://jenkins:8080/"
POSTGRES_HOST: db
POSTGRES_PORT: 5432
RABBITMQ_HOST: rabbitmq
RABBITMQ_PORT: 5672
RABBITMQ_API_HOST: rabbitmq
RABBITMQ_API_PORT: 15672
REDIS_HOST: redis
REDIS_PORT: 6379
RECIPE_NAME: development
XDEBUG_CONFIG: "remote_host=${EXTRA_HOST_IP}"
volumes:
- nfsmount_spryker_name:/var/www/spryker/releases/current
- nfsmount_spryker_name_composer:/root/.composer
- nfsmount_spryker_name_npm:/root/.npm
extra_hosts:
- "dev.XXX.com:${EXTRA_HOST_IP}"
- "zed.XXX.domain.com:${EXTRA_HOST_IP}"
- "glue.XXX.domain.com:${EXTRA_HOST_IP}"
network_mode: bridge
db:
image: postgres:9.6
ports:
- 5432
env_file:
- db.dev.env
network_mode: bridge
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
ports:
- 9200
environment:
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.ml.enabled=false
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- discovery.zen.minimum_master_nodes=1
- discovery.type=single-node
- VIRTUAL_HOST=elasticsearch.dev.domain.com
- VIRTUAL_PORT=9200
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
network_mode: bridge
redis:
image: redis:2.8.23
ports:
- 6379
network_mode: bridge
rabbitmq:
image: rabbitmq:3.6.5-management
ports:
- 15672
env_file:
- rabbitmq.dev.env
environment:
VIRTUAL_HOST: rabbitmq.dev.domain.com
VIRTUAL_PORT: 15672
network_mode: bridge
jenkins:
image: jenkins/jenkins:lts
environment:
JAVA_OPTS: '-Djenkins.install.runSetupWizard=false'
VIRTUAL_HOST: jenkins.dev.domain.com
VIRTUAL_PORT: 8080
ports:
- 8080
- 22
network_mode: bridge
mailcatcher:
image: "${REGISTRY_URL}/fond-of-spryker/mailcatcher:1.0.0"
ports:
- 1080
- 1025
environment:
VIRTUAL_HOST: mailcatcher.dev.domain.com
VIRTUAL_PORT: 1080
network_mode: bridge
volumes:
nfsmount_spryker_name:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,actimeo=2,nfsvers=3
device: ":${PATH_TO_PROJECT}"
nfsmount_spryker_name_composer:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,actimeo=2,nfsvers=3
device: ":${PATH_TO_COMPOSER}"
nfsmount_spryker_name_npm:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,actimeo=2,nfsvers=3
device: ":${PATH_TO_NPM}"