Listmonk, verified and packaged by Elestio
365
Listmonk is a standalone, self-hosted, newsletter and mailing list manager. It is fast, feature-rich, and packed into a single binary. It uses a PostgreSQL (⩾ 12) database as its data store.
Deploy a fully managed listmonk on elest.io if you want a free and open-source, decentralized, ActivityPub federated video platform powered by WebTorrent, that uses peer-to-peer technology to reduce load on individual servers when viewing videos.
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/listmonk.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Create data folders with correct permissions
Run the project with the following command
docker-compose up -d
You can access the Web UI at: http://your-domain:9090
Here are some example snippets to help you get started creating a container.
version: "3.7"
services:
db:
image: postgres:13
ports:
- "172.17.0.1:5432:5432"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U listmonk"]
interval: 10s
timeout: 5s
retries: 6
container_name: listmonk_db
volumes:
- ./listmonk-data:/var/lib/postgresql/data
app:
restart: unless-stopped
image: elestio4test/listmonk:${SOFTWARE_VERSION_TAG}
command: [sh, -c, "yes | ./listmonk --install --config config.toml && ./listmonk --config config.toml"]
ports:
- "172.17.0.1:9090:9000"
environment:
- TZ=Etc/UTC
container_name: listmonk_app
depends_on:
- db
volumes:
- ./config.toml:/listmonk/config.toml
| Variable | Value (example) |
|---|---|
| ADMIN_EMAIL | admin email |
| ADMIN_PASSWORD | admin password |
| SOFTWARE_VERSION | latest |
| POSTGRES_USER | postgres user |
| POSTGRES_PASSWORD | postgres password |
The Elestio Listmonk Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:24c2ebf4e…
Size
10.8 MB
Last updated
almost 3 years ago
docker pull elestio4test/listmonk