# Self-host Inbucket

> Disposable mail server that catches mail for any address and shows it in a web inbox, for testing apps without sending real email.

- Page: https://levelrail.com/templates/inbucket/
- JSON: https://levelrail.com/templates/inbucket.json
- Category: Developer Tools
- Licence: MIT (Permissive license)
- Source: https://github.com/inbucket/inbucket
- Upstream docs: https://www.inbucket.org/

## Requirements
- Memory: about 64 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 3.2.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| inbucket | inbucket/inbucket | 3.2.0 | 9000, 2500 | data -> /storage |

## Deploy

### CLI

```bash
levelrail-cli templates deploy inbucket --name my-inbucket
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/inbucket/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Point your app at port 2500 and open the address to read what it sent. It has no login, so keep it private.

## Questions

### Can I deploy Inbucket on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Inbucket, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image inbucket/inbucket:3.2.0 is what you deploy there.

Self-host Inbucket, Inbucket docker compose file, deploy Inbucket on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
