Docker
Deploy Memphis over Docker using Docker compose
Docker
Requirements (No HA)
Resource | Quantity |
---|---|
OS | Mac / Windows / Linux |
CPU | 1 CPU |
Memory | 4GB |
Storage | 6GB |
curl -s https://memphisdev.github.io/memphis-docker/docker-compose.yml -o docker-compose.yml
docker compose -f docker-compose.yml -p memphis up
Output:
[+] Running 3/3
⠿ Container memphis-cluster-1 Creating 0.2s 0.2s 0.2s
⠿ Container memphis-mongo-1 Creating 0.2s
- memphis-cluster-1: Three (default) MQ workers (Jetstream- and Memphis-made replicas). Responsible for data ingestion and processing, just like Kafka's brokers.
- memphis-mongo-1: MongoDB, for Memphis internal usage.
UI
CLI
SDK
The default port of the UI is 9000:
http://localhost:9000
Default Username: root
Default Password: memphis
For the entire CLI reference and how to install it, please head the following page:
The CLI client connects to Memphis via the UI.
$# mem connect
Use command: mem connect --user <user> --password <password> --server <server>
Example: mem connect -u root -p memphis -s http://<memphis-control-plane>:<port>
Connection configuration to Memphis control plane
Usage: index connect <command> [options]
Connection to Memphis control plane
Options:
-u, --user <user> User
-p, --password <password> Password
-s, --server <server> Memphis control plane
-h, --help display help for command
$# mem connect -u root -p memphis -s http://localhost:9000
Connected successfully to Memphis control plane.
For more detailed information, head to the SDKs section below.
await memphis.connect({
host: "broker.sandbox.memphis.dev",
port: <port>, // defaults to 6666
username: "<application type username>",
connectionToken: "<connection_token>"
});
- host: Usually the control plane or through the UI URL. For example "https://memphis-ui.test.com/api".
- username: Usually "root". Head to the users' section via the UI or CLI to add more.
- connectionToken: Each app that produces and/or consumer data with Memphis uses token authentication. The default value is "memphis".
docker rm -f $(docker ps -a | grep -i memphis | awk '{print $1}')
docker image rm -f $(docker image ls | grep -i memphis)
curl -s https://memphisdev.github.io/memphis-docker/docker-compose.yml -o docker-compose.yml && docker compose -f docker-compose.yml -p memphis up
Last modified 1mo ago