Single Node Deployment
Single Node Deployment
This example will use a template docker-compose file from our logship-deployments repository to quickly deploy Logship services.
Setup
Scripts Only
git clone https://github.com/logship-io/logship-deployments.git
cd logship-deployments/src/docker-compose/single-node
docker-compose pull
docker-compose up -d
# Open http://localhost:8000/setup in your browser Tip: set
LOGSHIP_VERSIONenvironment variable to pin image tags (e.g.,export LOGSHIP_VERSION=0.8.0 && docker-compose pull && docker-compose up -d).
Guided
- Use git to clone a copy of the logship-deployments repository, available here.
git clone https://github.com/logship-io/logship-deployments.git - Enter the freshly cloned repository in your terminal, and navigate to
src/docker-compose/single-nodeto find the docker-compose for a single-node deployment.
First, if you didn't already:
cd logship-deployments then:
cd src/docker-compose/single-node - Make sure you have all of the latest containers available.
docker-compose pull - Create the environment!
docker-compose up -d Try it out
- Open up the local logship frontend at http://localhost:8000/setup.
- Follow the setup instructions to create a login for your new database.
- Try it out! Explore the query and alerts page. Check out how the page views chart on the homepage changes as you explore over time.
- Clean up with
docker-compose down
Verify data flow end-to-end
- Send a sample event via curl:
backend="http://localhost:5000"
account="00000000-0000-0000-0000-000000000000"
curl -X POST "$backend/inflow/$account" \
-H "Content-Type: application/json" \
-d '[{"schema":"demo.hello","timestamp":"'$(date -u +"%Y-%m-%dT%H:%M:%S.%NZ")'","data":{"message":"Hello from curl","value":42}}]' - Query it in the UI (Query page):
demo.hello
| where timestamp > ago(5m)
| project timestamp, message, value - Clean up:
docker-compose down -v