Skip to content

nself service

Enable, disable, and list optional ɳSelf services.

nself service <subcommand> [flags]

nself service manages the optional services in your ɳSelf stack. The four core services (PostgreSQL, Hasura, Auth, Nginx) are always included. Everything else: Redis, MinIO, Mailpit, Functions, MeiliSearch, Monitoring, and Admin, is optional and controlled through this command. MLflow is available as a free plugin (nself plugin install mlflow) rather than a built-in service.

Enabling or disabling a service writes to your .env file. After changing service state, run nself build to regenerate docker-compose.yml with the updated service set, then �P1� restart to apply the changes.

SubcommandDescription
enable <name>Enable an optional service
disable <name>Disable an optional service
listList all optional services with enabled/disabled status
ServiceEnv VarAliases
redisREDIS_ENABLEDnone
minioMINIO_ENABLEDstorage
mailpitMAILPIT_ENABLEDemail
functionsFUNCTIONS_ENABLEDnone
searchSEARCH_ENABLEDmeilisearch
monitoringMONITORING_ENABLEDnone
adminnselfnone
FlagDefaultDescription
--envcurrentTarget environment file
--jsonfalseOutput as JSON array (for list)
--help, -hnoneShow help
Terminal window
# List all optional services
nself service list
nself service list --json
# Enable Redis
nself service enable redis
# Enable MinIO object storage (using alias)
nself service enable storage
# Enable monitoring stack
nself service enable monitoring
# Enable monitoring for production environment
nself service enable monitoring --env prod
# Disable Mailpit
nself service disable mailpit
# Disable MeiliSearch (using alias)
nself service disable meilisearch
# After changing services, rebuild and restart
nself build && nself restart

Commands | Home