-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
205 lines (187 loc) · 5.32 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
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
version: "3.2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: ${PROJECT_PREFIX}nginx-proxy
ports:
- 80:80
- 443:443
- "${APP_WEBSOCKET_FRONTEND_PORT}:${APP_WEBSOCKET_FRONTEND_PORT}"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
db:
image: mysql:5.5
container_name: ${PROJECT_PREFIX}db
expose:
- 3306
environment:
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
volumes:
- "orocrm_mysql_dir:/var/lib/mysql"
mail:
image: catatnight/postfix
container_name: orocrm_mail
expose:
- "25"
environment:
- "maildomain=${APP_MAILER_HOST}"
- "smtp_user=${APP_MAILER_USER}@${APP_MAILER_HOST}:${APP_MAILER_PASSWORD}"
orocrm:
image: widgento/orocrm
container_name: ${PROJECT_PREFIX}orocrm
links:
- "db"
- "mail"
- "nginx-proxy"
expose:
- 80
- 443
volumes:
- "orocrm_app_dir:${OROCRM_ROOT_DIR}"
- "orocrm_bundle_dir:${OROCRM_BUNDLE_DIR}"
- "orocrm_cache_dir:${OROCRM_CACHE_DIR}"
- "orocrm_uploads_dir:${OROCRM_UPLOADS_DIR}"
- "orocrm_media_dir:${OROCRM_MEDIA_DIR}"
- "orocrm_attachment_dir:${OROCRM_ATTACHMENT_DIR}"
- "orocrm_import_export_dir:${OROCRM_IMPORT_EXPORT_DIR}"
- "orocrm_xdebug_log_dir:${XDEBUG_LOG_DIR}"
- "orocrm_composer_cache_dir:${COMPOSER_CACHE_DIR}"
- "~/.ssh/id_rsa:/var/www/.ssh/id_rsa:ro"
- "~/.ssh/id_rsa.pub:/var/www/.ssh/id_rsa.pub:ro"
environment:
- APP_DB_DRIVER
- APP_DB_HOST
- APP_DB_PORT
- APP_MAILER_TRANSPORT
- APP_MAILER_HOST
- APP_MAILER_PORT
- APP_MAILER_ENCRYPTION
- APP_MAILER_USER
- APP_MAILER_PASSWORD
- APP_WEBSOCKET_BIND_PORT
- APP_WEBSOCKET_BACKEND_PORT
- APP_WEBSOCKET_FRONTEND_PORT
- APP_SECRET
- VIRTUAL_HOST
- SYMFONY_ENV
- SYMFONY_INDEX_FILE
- OROCRM_ROOT_DIR
- GIT_URI
- GIT_REF
- DEV_USER_ID
- DEV_GROUP_ID
- OROCRM_ADMIN_EMAIL
- OROCRM_ADMIN_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- BASE_URL
- APP_SAMPLE_DATA
- OROCRM_BUNDLE_DIR
- XDEBUG_LOG_DIR
- GITHUB_OAUTH_TOKEN
cron:
image: widgento/orocrm
command: orocrm-cron-run.sh
container_name: ${PROJECT_PREFIX}cron
links:
- "db"
- "mail"
volumes:
- "orocrm_app_dir:${OROCRM_ROOT_DIR}"
- "orocrm_bundle_dir:${OROCRM_BUNDLE_DIR}"
- "orocrm_cache_dir:${OROCRM_CACHE_DIR}"
- "orocrm_uploads_dir:${OROCRM_UPLOADS_DIR}"
- "orocrm_media_dir:${OROCRM_MEDIA_DIR}"
- "orocrm_attachment_dir:${OROCRM_ATTACHMENT_DIR}"
- "orocrm_import_export_dir:${OROCRM_IMPORT_EXPORT_DIR}"
- "orocrm_xdebug_log_dir:${XDEBUG_LOG_DIR}"
- "orocrm_composer_cache_dir:${COMPOSER_CACHE_DIR}"
environment:
- SYMFONY_ENV
- OROCRM_ROOT_DIR
- DEV_USER_ID
- DEV_GROUP_ID
- XDEBUG_LOG_DIR
websocket:
image: widgento/orocrm
command: orocrm-websocket-run.sh
container_name: ${PROJECT_PREFIX}websocket
links:
- "db"
- "mail"
- "nginx-proxy"
expose:
- "${APP_WEBSOCKET_FRONTEND_PORT}"
volumes:
- "orocrm_app_dir:${OROCRM_ROOT_DIR}"
- "orocrm_bundle_dir:${OROCRM_BUNDLE_DIR}"
- "orocrm_cache_dir:${OROCRM_CACHE_DIR}"
- "orocrm_uploads_dir:${OROCRM_UPLOADS_DIR}"
- "orocrm_media_dir:${OROCRM_MEDIA_DIR}"
- "orocrm_attachment_dir:${OROCRM_ATTACHMENT_DIR}"
- "orocrm_import_export_dir:${OROCRM_IMPORT_EXPORT_DIR}"
- "orocrm_xdebug_log_dir:${XDEBUG_LOG_DIR}"
- "orocrm_composer_cache_dir:${COMPOSER_CACHE_DIR}"
environment:
- SYMFONY_ENV
- OROCRM_ROOT_DIR
- DEV_USER_ID
- DEV_GROUP_ID
- XDEBUG_LOG_DIR
- VIRTUAL_HOST
message-consumer:
image: widgento/orocrm
command: orocrm-message-consumer-run.sh
container_name: ${PROJECT_PREFIX}message-consumer
links:
- "db"
- "mail"
volumes:
- "orocrm_app_dir:${OROCRM_ROOT_DIR}"
- "orocrm_bundle_dir:${OROCRM_BUNDLE_DIR}"
- "orocrm_cache_dir:${OROCRM_CACHE_DIR}"
- "orocrm_uploads_dir:${OROCRM_UPLOADS_DIR}"
- "orocrm_media_dir:${OROCRM_MEDIA_DIR}"
- "orocrm_attachment_dir:${OROCRM_ATTACHMENT_DIR}"
- "orocrm_import_export_dir:${OROCRM_IMPORT_EXPORT_DIR}"
- "orocrm_xdebug_log_dir:${XDEBUG_LOG_DIR}"
- "orocrm_composer_cache_dir:${COMPOSER_CACHE_DIR}"
environment:
- SYMFONY_ENV
- OROCRM_ROOT_DIR
- DEV_USER_ID
- DEV_GROUP_ID
- XDEBUG_LOG_DIR
volumes:
orocrm_app_dir:
driver_opts:
type: none
device: "${HOST_OROCRM_ROOT_DIR}"
o: bind
orocrm_bundle_dir:
driver_opts:
type: none
device: "${HOST_OROCRM_BUNDLE_DIR}"
o: bind
orocrm_mysql_dir:
driver: local
orocrm_cache_dir:
driver: local
orocrm_uploads_dir:
driver: local
orocrm_media_dir:
driver: local
orocrm_attachment_dir:
driver: local
orocrm_import_export_dir:
driver: local
orocrm_postgresql_dir:
driver: local
orocrm_xdebug_log_dir:
driver: local
orocrm_composer_cache_dir:
driver: local