Skip to content

Commit af5aa8d

Browse files
committedJan 28, 2023
add docker instruction
1 parent 7754ba9 commit af5aa8d

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
 

‎Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM golang:1.18-alpine3.16
2+
3+
WORKDIR /app
4+
COPY go.mod go.sum ./
5+
COPY *.go ./
6+
RUN go mod download
7+
RUN go build -o ./out/app *.go
8+
9+
CMD [ "./out/app" ]

‎README.md

+10
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ Param: `?by=<peetprint>`
102102

103103
Returns the most seen other identifiers (user-agent, h2, JA3) that were seen together with this identifier. Only works when connected to a database.
104104

105+
## Docker
106+
107+
You can also run the server in a docker container using docker-compose.
108+
109+
```bash
110+
# generate certs and update your config.json
111+
docker-compose -up --build
112+
# visit https://localhost/api/all
113+
```
114+
105115
## TLS & HTTP2 fingerprinting resources
106116

107117
- [TLS 1.3, every byte explained](https://tls13.xargs.org/)

‎docker-compose.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: "2.2"
2+
3+
services:
4+
peet-tls:
5+
image: peet-tls
6+
build:
7+
context: .
8+
dockerfile: Dockerfile
9+
volumes:
10+
- ${PWD}/certs/:/app/certs
11+
- ${PWD}/config.json:/app/config.json
12+
- ${PWD}/blockedIPs:/app/blockedIPs
13+
ports:
14+
- "443:443"
15+
- "80:80"

0 commit comments

Comments
 (0)
Please sign in to comment.