docker run --rm -it -e LISTMONK_db__host=db -e LISTMONK_db__user=listmonk -e LISTMONK_db__password=listmonk -e LISTMONK_db__database=listmonk listmonk/listmonk:latest --install --idempotent --yes --config ''

Category: Listmonk & Newsletters

docker run --rm -it -e LISTMONK_db__host=db -e LISTMONK_db__user=listmonk -e LISTMONK_db__password=listmonk -e LISTMONK_db__database=listmonk listmonk/listmonk:latest --install --idempotent --yes --config ''

Install the schema from inside a fresh container

Runs the listmonk image once to create the database schema, using environment variables for the connection and --config '' to skip file config. --idempotent and --yes make the run non-interactive and safe to repeat. The official compose file performs this automatically on first start.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.