Compose: Running commands

Once the container is running, you can run commands in the Zulip container using docker compose exec. For example, to get a terminal within the container:

docker compose exec zulip bash

Running management commands

Some parts of the Zulip documentation may reference running management commands. These can also be run via docker compose exec, with and additional -u zulip to run as the zulip user:

# Run a Zulip management command
docker compose exec -u zulip zulip \
    /home/zulip/deployments/current/manage.py list_realms

We provide a helper manage.py in the repository file to make this simpler:

# In the docker-zulip directory:
./manage.py list_realms

See also