This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
forked from mautic/docker-mautic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
165 lines (156 loc) · 8.5 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
version: '3'
services:
mautic:
restart: unless-stopped
image: ghcr.io/netresearch/mautic
build: ./mautic
depends_on:
redis:
condition: service_started
beanstalkd:
condition: service_started
dbms:
condition: service_healthy
environment:
MAUTIC_INSTALL_SOURCE: ${MAUTIC_INSTALL_SOURCE:-Docker}
MAUTIC_DB_DRIVER: ${MAUTIC_DB_DRIVER:-pdo_mysql}
MAUTIC_DB_HOST: ${MAUTIC_DB_HOST:-dbms}
MAUTIC_DB_NAME: ${MAUTIC_DB_NAME:-mautic}
MAUTIC_DB_TABLE_PREFIX: ${MAUTIC_DB_TABLE_PREFIX:-}
MAUTIC_DB_USER: ${MAUTIC_DB_USER:-mautic}
MAUTIC_DB_PASSWORD: ${MAUTIC_DB_PASSWORD:-mautic}
MAUTIC_TRUSTED_PROXIES: ${MAUTIC_TRUSTED_PROXIES:-["127.0.0.1"]}
MAUTIC_SITE_URL: ${MAUTIC_SITE_URL:-mautic.local}
labels:
ofelia.enabled: "true"
ofelia.no-overlap: "true"
ofelia.job-exec.segments_update.schedule: "8,23,38,52 * * * *"
ofelia.job-exec.segments_update.command: "php /var/www/html/bin/console mautic:segments:update"
ofelia.job-exec.segments_update.user: "www-data"
ofelia.job-exec.import.schedule: "*/5 * * * *"
ofelia.job-exec.import.command: "php /var/www/html/bin/console mautic:import"
ofelia.job-exec.import.user: "www-data"
ofelia.job-exec.campaigns_update.schedule: "5,20,35,50 * * * *"
ofelia.job-exec.campaigns_update.command: "php /var/www/html/bin/console mautic:campaigns:update"
ofelia.job-exec.campaigns_update.user: "www-data"
ofelia.job-exec.campaigns_trigger.schedule: "2,17,32,47 * * * *"
ofelia.job-exec.campaigns_trigger.command: "php /var/www/html/bin/console mautic:campaigns:trigger"
ofelia.job-exec.campaigns_trigger.user: "www-data"
ofelia.job-exec.messages_send.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.messages_send.command: "php /var/www/html/bin/console mautic:messages:send"
ofelia.job-exec.messages_send.user: "www-data"
ofelia.job-exec.emails_send.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.emails_send.command: "php /var/www/html/bin/console mautic:emails:send"
ofelia.job-exec.emails_send.user: "www-data"
ofelia.job-exec.email_fetch.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.email_fetch.command: "php /var/www/html/bin/console mautic:email:fetch"
ofelia.job-exec.email_fetch.user: "www-data"
ofelia.job-exec.social_monitoring.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.social_monitoring.command: "php /var/www/html/bin/console mautic:social:monitoring"
ofelia.job-exec.social_monitoring.user: "www-data"
ofelia.job-exec.webhooks_process.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.webhooks_process.command: "php /var/www/html/bin/console mautic:webhooks:process"
ofelia.job-exec.webhooks_process.user: "www-data"
ofelia.job-exec.broadcasts_send.schedule: "0,15,30,45 * * * *"
ofelia.job-exec.broadcasts_send.command: "php /var/www/html/bin/console mautic:broadcasts:send"
ofelia.job-exec.broadcasts_send.user: "www-data"
ofelia.job-exec.maintenance_cleanup.schedule: "* 1 * * *"
ofelia.job-exec.maintenance_cleanup.command: "php /var/www/html/bin/console mautic:maintenance:cleanup --days-old=365"
ofelia.job-exec.maintenance_cleanup.user: "www-data"
ofelia.job-exec.iplookup_download.schedule: "0 4 15 * *"
ofelia.job-exec.iplookup_download.command: "php /var/www/html/bin/console mautic:iplookup:download"
ofelia.job-exec.iplookup_download.user: "www-data"
ofelia.job-exec.reports_scheduler.schedule: "*/5 * * * *"
ofelia.job-exec.reports_scheduler.command: "php /var/www/html/bin/console mautic:reports:scheduler"
ofelia.job-exec.reports_scheduler.user: "www-data"
ofelia.job-exec.unusedip_delete.schedule: "0 5 10 * *"
ofelia.job-exec.unusedip_delete.command: "php /var/www/html/bin/console mautic:unusedip:delete"
ofelia.job-exec.unusedip_delete.user: "www-data"
# ENABLES HUBSPOT CRON
#ofelia.job-exec.hubspot_integration_fetchleads.schedule: "10,40 * * * *"
#ofelia.job-exec.hubspot_integration_fetchleads.command: "php /var/www/html/bin/console mautic:integration:fetchleads --integration=Hubspot"
#ofelia.job-exec.hubspot_integration_fetchleads.user: "www-data"
#ofelia.job-exec.hubspot_integration_pushactivity.schedule: "15,45 * * * *"
#ofelia.job-exec.hubspot_integration_pushactivity.command: "php /var/www/html/bin/console mautic:integration:pushactivity --integration=Hubspot"
#ofelia.job-exec.hubspot_integration_pushactivity.user: "www-data"
# ENABLES SALESFORCE CRON
#ofelia.job-exec.salesforce_integration_fetchleads.schedule: "10,40 * * * *"
#ofelia.job-exec.salesforce_integration_fetchleads.command: "php /var/www/html/bin/console mautic:integration:fetchleads --integration=Salesforce"
#ofelia.job-exec.salesforce_integration_fetchleads.user: "www-data"
#ofelia.job-exec.salesforce_integration_pushactivity.schedule: "12,42 * * * *"
#ofelia.job-exec.salesforce_integration_pushactivity.command: "php /var/www/html/bin/console mautic:integration:pushactivity --integration=Salesforce"
#ofelia.job-exec.salesforce_integration_pushactivity.user: "www-data"
#ofelia.job-exec.salesforce_integration_pushleadactivity.schedule: "14,44 * * * *"
#ofelia.job-exec.salesforce_integration_pushleadactivity.command: "php /var/www/html/bin/console mautic:integration:pushleadactivity --integration=Salesforce"
#ofelia.job-exec.salesforce_integration_pushleadactivity.user: "www-data"
#ofelia.job-exec.salesforce_integration_synccontacts.schedule: "16,46 * * * *"
#ofelia.job-exec.salesforce_integration_synccontacts.command: "php /var/www/html/bin/console mautic:integration:synccontacts --integration=Salesforce"
#ofelia.job-exec.salesforce_integration_synccontacts.user: "www-data"
# ENABLES SUGARCRM CRON
#ofelia.job-exec.sugarcrm_integration_fetchleads.schedule: "10,40 * * * *"
#ofelia.job-exec.sugarcrm_integration_fetchleads.command: "php /var/www/html/bin/console mautic:integration:fetchleads --fetch-all --integration=Sugarcrm"
#ofelia.job-exec.sugarcrm_integration_fetchleads.user: "www-data"
# ENABLES PIPEDRIVE CRON
#ofelia.job-exec.pipedrive_integration_fetch.schedule: "10,40 * * * *"
#ofelia.job-exec.pipedrive_integration_fetch.command: "php /var/www/html/bin/console mautic:integration:pipedrive:fetch"
#ofelia.job-exec.pipedrive_integration_fetch.user: "www-data"
#ofelia.job-exec.pipedrive_integration_push.schedule: "15,45 * * * *"
#ofelia.job-exec.pipedrive_integration_push.command: "php /var/www/html/bin/console mautic:integration:pipedrive:push"
#ofelia.job-exec.pipedrive_integration_push.user: "www-data"
# ENABLES ZOHO CRON
#ofelia.job-exec.zohocrm_integration_fetchleads.schedule: "10,40 * * * *"
#ofelia.job-exec.zohocrm_integration_fetchleads.command: "php /var/www/html/bin/console mautic:integration:fetchleads --integration=Zoho"
#ofelia.job-exec.zohocrm_integration_fetchleads.user: "www-data"
# ENABLES DYNAMICS CRON
#ofelia.job-exec.dynamicscrm_integration_fetchleads.schedule: "10,40 * * * *"
#ofelia.job-exec.dynamicscrm_integration_fetchleads.command: "php /var/www/html/bin/console mautic:integration:fetchleads -i Dynamics"
#ofelia.job-exec.dynamicscrm_integration_fetchleads.user: "www-data"
entrypoint: /usr/local/bin/entrypoint_mautic.sh
command: php-fpm
volumes:
- docroot:/var/www/html
dbms:
restart: unless-stopped
image: mariadb:10
environment:
MARIADB_ROOT_PASSWORD: ${MAUTIC_DB_ROOT_PASSWORD:-m4ut1cdbm5r00tp4ss}
MARIADB_DATABASE: ${MAUTIC_DB_NAME:-mautic}
MARIADB_USER: ${MAUTIC_DB_USER:-mautic}
MARIADB_PASSWORD: ${MAUTIC_DB_PASSWORD:-mautic}
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
- database:/var/lib/mysql
httpd:
restart: unless-stopped
image: ghcr.io/netresearch/mautic
build: ./mautic
command: nginx -g "daemon off;"
depends_on:
- mautic
volumes:
- docroot:/var/www/html
redis:
image: redis:alpine
# rabbitmq:
# image: rabbitmq
beanstalkd:
image: beanstalkd
build:
context: ./beanstalkd
cron:
restart: unless-stopped
image: mcuadros/ofelia:latest
command: daemon --docker
depends_on:
- mautic
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
docroot:
database:
networks:
default:
driver: "bridge"