@@ -43,15 +43,31 @@ A modern, real-time web application for visualizing and analyzing network traffi
4343## Quick Start
4444
4545### Prerequisites
46- - Node.js 18+ and npm 8+
4746- Tailscale API key with appropriate permissions
4847- Access to a Tailscale network
48+ - Docker (recommended) or Node.js 18+ and npm 8+
4949
50- ### Installation
50+ ### Option 1: Using Docker (Recommended)
51+
52+ The fastest way to get started is using the pre-built Docker image:
53+
54+ ``` bash
55+ docker run -d \
56+ -p 3000:3000 \
57+ -p 3001:3001 \
58+ -e VITE_TAILSCALE_API_KEY=your-api-key \
59+ -e VITE_TAILSCALE_TAILNET=your-tailnet \
60+ --name tsflow \
61+ ghcr.io/rajsinghtech/tsflow:latest
62+ ```
63+
64+ Then navigate to ` http://localhost:3000 ` to start exploring your network!
65+
66+ ### Option 2: Development Setup
5167
52681 . ** Clone the repository**
5369 ``` bash
54- git clone https://github.com/your-username /tsflow.git
70+ git clone https://github.com/rajsinghtech /tsflow.git
5571 cd tsflow
5672 ```
5773
@@ -67,8 +83,8 @@ A modern, real-time web application for visualizing and analyzing network traffi
6783
6884 Edit ` .env ` and add your Tailscale credentials:
6985 ``` env
70- TAILSCALE_ACCESS_TOKEN =tskey-client-your-api-key-here
71- TAILSCALE_TAILNET =your-tailnet-name
86+ VITE_TAILSCALE_API_KEY =tskey-client-your-api-key-here
87+ VITE_TAILSCALE_TAILNET =your-tailnet-name
7288 ```
7389
74904 . ** Start the application**
@@ -86,10 +102,48 @@ A modern, real-time web application for visualizing and analyzing network traffi
86102
87103## Docker Deployment
88104
105+ ### Using Pre-built Images (Recommended)
106+
107+ Pre-built container images are automatically built and published to GitHub Container Registry:
108+
109+ ``` bash
110+ # Pull and run the latest image
111+ docker run -d \
112+ -p 3000:3000 \
113+ -p 3001:3001 \
114+ -e VITE_TAILSCALE_API_KEY=your-api-key \
115+ -e VITE_TAILSCALE_TAILNET=your-tailnet \
116+ --name tsflow \
117+ ghcr.io/rajsinghtech/tsflow:latest
118+ ```
119+
120+ ** Available tags:**
121+ - ` latest ` - Latest stable release from main branch
122+ - ` <commit-sha> ` - Specific commit builds
123+ - ` <version> ` - Tagged releases (when available)
124+
89125### Using Docker Compose (Recommended)
90126
127+ Create a ` docker-compose.yml ` file:
128+
129+ ``` yaml
130+ version : ' 3.8'
131+ services :
132+ tsflow :
133+ image : ghcr.io/rajsinghtech/tsflow:latest
134+ ports :
135+ - " 3000:3000"
136+ - " 3001:3001"
137+ environment :
138+ - VITE_TAILSCALE_API_KEY=your-api-key
139+ - VITE_TAILSCALE_TAILNET=your-tailnet
140+ restart : unless-stopped
141+ ` ` `
142+
143+ Then start the application:
144+
91145` ` ` bash
92- # Build and start
146+ # Start the application
93147docker-compose up -d
94148
95149# View logs
@@ -99,7 +153,9 @@ docker-compose logs -f
99153docker-compose down
100154```
101155
102- ### Using Docker directly
156+ ### Building from Source
157+
158+ If you prefer to build the image yourself:
103159
104160``` bash
105161# Build image
@@ -109,8 +165,8 @@ docker build -t tsflow .
109165docker run -d \
110166 -p 3000:3000 \
111167 -p 3001:3001 \
112- -e TAILSCALE_ACCESS_TOKEN =your-api-key \
113- -e TAILSCALE_TAILNET =your-tailnet \
168+ -e VITE_TAILSCALE_API_KEY =your-api-key \
169+ -e VITE_TAILSCALE_TAILNET =your-tailnet \
114170 --name tsflow \
115171 tsflow
116172```
@@ -136,9 +192,9 @@ npm run preview
136192
137193| Variable | Description | Default |
138194| ----------| -------------| ---------|
139- | ` TAILSCALE_ACCESS_TOKEN ` | Your Tailscale API key | Required |
140- | ` TAILSCALE_TAILNET ` | Your tailnet name | Required |
141- | ` PROXY_TAILSCALE_BASE_URL ` | API base URL | ` http://localhost:3001/api/v2 ` |
195+ | ` VITE_TAILSCALE_API_KEY ` | Your Tailscale API key | Required |
196+ | ` VITE_TAILSCALE_TAILNET ` | Your tailnet name | Required |
197+ | ` VITE_TAILSCALE_BASE_URL ` | API base URL | ` http://localhost:3001/api/v2 ` |
142198
143199## Usage
144200
0 commit comments