惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
月光博客
月光博客
T
Tailwind CSS Blog
小众软件
小众软件
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
B
Blog RSS Feed
博客园 - 司徒正美
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 聂微东
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
博客园 - Franky
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research

Oskyla 烹茶室

修复 Joplin on KDE 菜单栏显示问题 Copy Fail:Linux 内核 2017 年至今的高危漏洞(附临时缓解方案) | CVE-2026-31431 Hermes Agent — 在 K3s / K8s 中运行指南 在 K3s 节点上安装并使用 nerdctl Mouser:轻量开源的罗技鼠标驱动替代方案 Claude Opus 4.7:优缺点与评测信息汇总 openFuyao NPU-Operator故障排查 openFuyao 2603 共测测试报告 openFuyao InferNex AI推理集成部署 310P(300I Pro) 环境问题记录及解决 ceph mon Operation not permitted 问题解决 Ascend 310P + openFuyao + NPU-Operator 故障排查 KDE Plasma6 禁用全局菜单,恢复正常应用菜单 终极指南:在 Linux 裸机服务器上快速部署 Moltbot (原 Clawbot) 并集成飞书 Windows 配置 Claude Code 解决 settings.json 不生效 Windows 配置 Claude Code 全流程 2025-12-31 | 年终总结 AI 生图精品提示词|第二期:城市星球 AI 生图精品提示词|第一期 Kubernetes kubectl --raw 使用指南 彻底解决阿里云和 tailscale 冲突 2025-10-21 | 沉淀思维 macOS 单独为鼠标或触控板开启自然滚动 2025-10-16 | 负载高低 2025-10-15 | 睡眠周期 2025-10-14 | 转换情绪与独立观点 go 拉取 gitcode.com 私有 mod Git 将某个文件恢复到其他分支的状态 SSH 通过跳板机连接 lxc 使用 chronyc 构建 ntp 服务 2025-10-13 | 独立思考于未来能源
Docker 部署 mautic 并增加插件和翻译包等
Tianlun Song · 2024-12-03 · via Oskyla 烹茶室

本文 首发于 🌱 煎茶转载 请注明 来源

参考:https://github.com/mautic/docker-mautic/tree/mautic5/examples

增加插件

使用如下 Dockerfile

FROM mautic/mautic:5-apache

COPY ./plugins/ /var/www/html/docroot/plugins/

结合以下 Makefile

all:
        docker build -t mautic/mautic:5-apache-my .

整个目录架构是这样:

root@tencent-gz1:/data/docker/mautic/add-something# tree -L 2 .
.
├── Dockerfile
├── Makefile
├── plugins
│   └── MauticRssToEmailBundle
└── translations
    └── zh_CN.zip

执行

增加语言包

Dockerfile 增加一个目录:

FROM mautic/mautic:5-apache

COPY ./plugins/ /var/www/html/docroot/plugins/
COPY ./translations/ /var/www/html/docroot/translations/

之后将语言包放入 translations 再构建新镜像即可。

比如下载简体中文类似这样做 :

wget https://language-packs.mautic.com/zh_CN.zip
unzip zh_CN.zip
mv zh_CN ./translations/

常见问题

500

root@tencent-gz1:/data/docker/mautic# docker exec -it basic-mautic_web-1 bash
root@f1088e8096c1:/var/www/html/docroot# cd ..
root@f1088e8096c1:/var/www/html# php bin/console cache:clear
root@7756b780cd1c:/var/www/html# php bin/console cache:clear
// Clearing the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared. 

References