This guide uses Docker Compose to run Listmonk with PostgreSQL backend.
listmonk.example.com)mkdir -p /opt/listmonk && cd /opt/listmonk
Create docker-compose.yml:
services:
listmonk:
image: listmonk/listmonk:latest
container_name: listmonk
restart: unless-stopped
ports:
- "9000:9000"
environment:
- LISTMONK_app__address=0.0.0.0:9000
- LISTMONK_db__host=db
- LISTMONK_db__port=5432
- LISTMONK_db__user=listmonk
- LISTMONK_db__password=ChangeMe123!
- LISTMONK_db__database=listmonk
volumes:
- ./config.toml:/listmonk/config.toml
depends_on:
- db
db:
image: postgres:15
container_name: listmonk-db
restart: unless-stopped
environment:
- POSTGRES_DB=listmonk
- POSTGRES_USER=listmonk
- POSTGRES_PASSWORD=ChangeMe123!
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data:
Run the installation command to generate config and initialize database:
docker compose run --rm listmonk ./listmonk --install
docker compose up -d
http://your-server:9000 in a browserlistmonk/listmonk on Docker Hublistmonk/listmonk:6.0)Any questions?
Feel free to contact us. Find all contact information on our contact page.