Skip to content

Commit 940945f

Browse files
authored
docs: add Docker usage instructions to README
Added Docker instructions for building and running the application.
1 parent 8fe5f02 commit 940945f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ Dashboard running at http://localhost:3000/
9191

9292
![Dashboard](https://github.com/tom-draper/log-analyzer/assets/41476809/6fd6cf34-f5f5-4148-9d40-e86288751c6b)
9393

94+
## Docker
95+
96+
If preferred, you can build and run using Docker. Mount your log directory and map the port to access the dashboard from your host.
97+
98+
```bash
99+
docker build -t log-analyzer .
100+
docker run -v /path/to/logs:/logs -p 3000:3000 log-analyzer /logs/app.log
101+
```
102+
94103
## Advanced Config
95104

96105
### Data Types
@@ -220,15 +229,6 @@ Once you have your patterns together, you can perform a test run by including th
220229
./log-analyzer ./tests/data/logs/demo.log --test
221230
```
222231

223-
## Docker
224-
225-
Build and run using Docker. Mount your log directory and map the port to access the dashboard from your host.
226-
227-
```bash
228-
docker build -t log-analyzer .
229-
docker run -v /path/to/logs:/logs -p 3000:3000 log-analyzer /logs/app.log
230-
```
231-
232232
## Additional Tools
233233

234234
### Pattern Identification

0 commit comments

Comments
 (0)