Single Node Deployment
Initial setup
This article will guide you through an initial setup of the logship server, database, agent, and grafana datasource. At the end of this tutorial, you'll have a working docker-compose deployment of the entire logship ecosystem on your local machine.
Prerequisites
In this example, you can either use docker-compose or podman-compose. Both work great. This tutorial works on both Linux and Windows (WSL2). It was tested on WSL2, since we're a windows show
Setup
- Check out a copy of the logship deployments repo, available here
git clone https://github.com/logsink/logship-deployments.git
- We're going to start with the most basic single node deployment.
Note. You'll need to authenticated with the github container registry... since we're a startup and don't have a better place to keep our stuff.
docker login ghcr.io/logsink
. Give it a PAT token.
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 grafana deployment at http://localhost:3000
- Try out the explore page!
- Clean it up with
docker-compose down