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_VERSION environment variable to pin image tags (e.g., export LOGSHIP_VERSION=0.8.0 && docker-compose pull && docker-compose up -d).

Guided

  1. Use git to clone a copy of the logship-deployments repository, available here.
git clone https://github.com/logship-io/logship-deployments.git
  1. Enter the freshly cloned repository in your terminal, and navigate to src/docker-compose/single-node to 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
  1. Make sure you have all of the latest containers available.
docker-compose pull
  1. Create the environment!
docker-compose up -d

Try it out

  1. Open up the local logship frontend at http://localhost:8000/setup.
  2. Follow the setup instructions to create a login for your new database.
  3. 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.
  4. Clean up with docker-compose down

Verify data flow end-to-end

  1. 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}}]'
  1. Query it in the UI (Query page):
demo.hello
| where timestamp > ago(5m)
| project timestamp, message, value
  1. Clean up:
docker-compose down -v