Skip to content

Commit aa48875

Browse files
author
=
committed
updated readme
1 parent 8e9450a commit aa48875

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

README.md

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1-
# simpleton
1+
# Simpleton
22
Simpleton HTTPd is a really simple web server that serves static content from a directory.
33

4-
5-
6-
7-
8-
9-
104
## Docker
115

126
```
13-
docker build -t kluzz/simpleton:latest .
147
docker run -p 80:80 -v /tmp/simpleton/content:/www kluzz/simpleton:latest
15-
```
8+
```
9+
10+
## Docker Compose
11+
12+
```
13+
services:
14+
simpleton:
15+
image: kluzz/simpleton:latest
16+
container_name: "simpleton"
17+
ports:
18+
- "80:80"
19+
volumes:
20+
- ./www:/www:ro
21+
- ./logs:/var/log/simpleton
22+
environment:
23+
- SIMPLETON_LISTEN_ADDRS=:80
24+
- SIMPLETON_ACCESS_LOG_PATH=/var/log/simpleton/access.log
25+
- SIMPLETON_SERVER_LOG_PATH=/var/log/simpleton/server.log
26+
- SIMPLETON_CONTENT_PATH=/www
27+
- SIMPLETON_CHROOT=true
28+
restart: unless-stopped
29+
```

0 commit comments

Comments
 (0)