Portainer Templates logo

Portainer Templates

Marreta

Stack

News

Marreta is a tool that breaks down access barriers and elements that hinder reading!

Image details

Architecture: amd64, arm64
Image size: 231 MB
User: manualdousuario

Source details

Stars: 1k
Forks: 40
Language: PHP
License: GPL-3.0
Updated: 3 days ago
Website: marreta.link/

Configuration

Type
Compose
Platform
linux
Image
ghcr.io/manualdousuario/marreta:latest
Ports
1180:80
Env vars
SITE_NAME=SITE_DESCRIPTION=SITE_URL=LANGUAGE=
Source

Template by xneo1·Source

Standalone Install

Select an install method, to see config/commands for deploying Marreta

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select Marreta, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo
Original stackfile

The compose file this template deploys, straight from its repo:

services:
  marreta:
    container_name: marreta
    image: ghcr.io/manualdousuario/marreta:latest
    ports:
      - "1180:80"
    environment:
      - SITE_NAME=
      - SITE_DESCRIPTION=
      - SITE_URL=
      - LANGUAGE=

Or deploy it directly from the source:

git clone https://github.com/xneo1/portainer_templates
cd portainer_templates
docker compose -f Template/Stack/marreta.yml up -d

More install options in our documentation, or see manualdousuario/marreta for app-specific guidance.

🛠️ Marreta

en pt-br
PHP 8.4+ Laravel 13
Forks Stars Issues
Marreta é uma ferramenta que quebra barreiras de acesso e elementos que atrapalham a leitura!
Antes e depois do Marreta
Instancia publica em marreta.link!

✨ O que tem de legal?

  • Limpa e corrige URLs automaticamente
  • Remove parâmetros chatos de rastreamento
  • Força HTTPS pra manter tudo seguro
  • Deixa o HTML limpinho e otimizado
  • Conserta URLs relativas sozinho
  • Permite colocar seus próprios estilos e scripts
  • Remove elementos indesejados
  • Cache, cache!
  • Bloqueia domínios que você não quer
  • Proteção DMCA com mensagens personalizadas
  • Permite configurar headers e cookies do seu jeito
  • PHP-FPM e OPcache
  • Suporte a Proxy

🐳 Instalando em Docker

Instale Docker e Docker Compose
curl -o ./compose.yml https://raw.githubusercontent.com/manualdousuario/marreta/main/compose.yml
Agora modifique com suas preferencias:
nano compose.yml
  • APP_NAME: Nome do seu Marreta
  • APP_DESCRIPTION: Conta pra que serve
  • APP_URL: Onde vai rodar, endereço completo com https://. O container serve HTTP na porta 8080 e o compose.yml publica ela em 81 no host; se você mudar isso (ex: 8080:8080), inclua a porta também no APPURL (ex: https://seusite:8080)
  • APP_LOCALE: pt-br (Português Brasil), en (Inglês), es (Espanhol) ou de-de (Alemão), ru-ru (Russo)
  • APP_KEY: opcional. Se ficar vazio, uma chave é gerada no primeiro boot e guardada no volume
  • DISABLE_CACHE: opcional. O cache de páginas vem ligado por padrão; coloque true para desligar
  • ADMIN_EMAIL: admin@marreta.local
  • ADMIN_PASSWORD: password

Agora só rodar docker compose up -d

⚠️ Breaking changes: migrando da 2.x pra 3.x

A partir da 3.0.0 o Marreta virou uma aplicação Laravel. É uma reescrita completa do zero, então não existe caminho de upgrade "no lugar", o recomendado é subir os containers novos e reconfigurar o essencial.

O que mudou

Variáveis de ambiente

Antes (2.x)Agora (3.x)Observação
SITENAMEAPPNAME
SITEDESCRIPTIONAPPDESCRIPTION
SITEURLAPPURL
LANGUAGEAPPLOCALE
DEBUGAPPDEBUG
APPKEYNovo e obrigatório. Se deixar vazio, é gerada uma chave automaticamente no primeiro boot
SELENIUMHOSTBROWSERWSENDPOINTAgora aponta pro Lightpanda (ws://marretabrowser:9222), não mais pro Selenium
DNSSERVERS(removido)
CLEANUPDAYS(removido)
LOGLEVEL / LOGDAYSTOKEEP(removido)
S3CACHEENABLED / S3(removido)
ADMINEMAIL / ADMINPASSWORDNovo. Credenciais de login do painel /admin

Docker

  • Porta interna do container mudou de 80 pra 8080 (o compose.yml já publica em 81:8080 no host, ajuste se você tinha 80:80 mapeado).
  • Os bind mounts antigos (./app/cache e ./app/logs) deixaram de existir. Agora tudo (banco SQLite + cache) mora num volume nomeado, marreta_storage, montado em /var/www/html/storage/app.

Passo a passo pra migrar

  1. Antes de derrubar os containers antigos, anote as customizações que você tenha feito em app/data/domain_rules.php, app/data/blocked_domains.php e app/data/global_rules.php, e também os domínios cadastrados em app/cache/dmca_domains.json. Nada disso é migrado automaticamente.
  2. Baixe o novo compose.yml, APP_KEY (gere uma em laravel-encryption-key-generator.vercel.app), ADMIN_EMAIL e ADMIN_PASSWORD.
  3. Suba os containers com docker compose up -d. No primeiro boot, as migrations rodam e o banco é populado com o conjunto padrão de regras/domínios bloqueados que vêm com o Marreta.
  4. Acesse SEU_DOMINIO/admin, entre com ADMIN_EMAIL/ADMIN_PASSWORD e recadastre manualmente: suas regras de domínio customizadas, domínios bloqueados extras e domínios com DMCA que você tinha anotado no passo 1.

🚀 Integrações


Feito com ❤️! Se tiver dúvidas ou sugestões, abre uma issue que a gente ajuda! 😉
Agradecimento ao projeto Burlesco e Hover que serviu de base para varias regras!

Star History

Star History Chart

Serve Marreta on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.

Proxying marreta.example.com to http://marreta:80

Add this to your Caddyfile

marreta.example.com {
	reverse_proxy http://marreta:80
}

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs <container>
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Port already in use

If deployment fails with "Bind for 0.0.0.0:1180 failed: port is already allocated", something else on your server is using that port.

  • Find what's using it: sudo ss -tlnp | grep :1180
  • Stop the other service, or pick a different host port. In 1180:80 only the left number is yours to change, the right one belongs to the app.

Running but the page won't load

The container is up but nothing appears in your browser.

  • Use your server's real IP: http://your-server-ip:1180. The 0.0.0.0 link Portainer shows isn't a real address.
  • Give it a minute after first deploy, marreta can take a while to initialise.
  • Make sure your firewall allows the port, e.g. sudo ufw allow 1180

Image won't pull

Test the pull directly on the host: docker pull ghcr.io/manualdousuario/marreta:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Required settings are blank

SITE_NAME, SITE_DESCRIPTION, SITE_URL, LANGUAGE have no default value, and marreta may crash or misbehave if left empty.

  • Fill them in on the deploy screen before hitting deploy.

Stack won't deploy

Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.

  • YAML only accepts spaces for indentation, a single tab breaks the whole file.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A Compose stack

Marreta is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.

The app image

An image is the app packed up ready to go, everything Marreta needs bundled into one download. This template pulls ghcr.io/manualdousuario/marreta:latest, which Docker fetches once (about 231 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. Marreta's comes from the GitHub Container Registry, published by manualdousuario.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Ports

A port is the door the app answers on. A mapping like 1180:80 means it's reachable on port 1180 of your server, where the left number is yours to change and the right one belongs to the app. Once it's running, open http://your-server-ip:1180 in a browser. It opens:

  • 1180:80, likely the web interface

No stored data

This template doesn't mount any storage, so whatever Marreta writes stays inside the container and is wiped if it's recreated or updated. That's fine for something stateless, but add a volume before trusting it with anything you want to keep.

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. Marreta takes 4 of them, and 4 need a value before it'll start properly:

  • SITE_NAME, needs a value
  • SITE_DESCRIPTION, needs a value
  • SITE_URL, needs a value
  • LANGUAGE, needs a value

Networking

Nothing custom is set, so Marreta sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container marreta. That's what you'll spot in the containers list and use in commands like docker logs marreta.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Open source license

Marreta is open source, released under the GPL-3.0 license. In plain terms the code is out in the open, so you're free to run it and change it to fit what you need.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set Marreta up. Add the template list to Portainer once, then deploying Marreta is a click rather than a wall of config.