mini webserver, always useful

for example, use it to serve /pubblici archive
This commit is contained in:
giomba 2020-12-08 21:08:12 +01:00
parent f0577d015f
commit 6b0b33672f
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,10 @@
version: "3.3"
services:
pubblici:
image: hub.docker.golem.linux.it/thttpd:latest
restart: unless-stopped
ports:
- "7003:80"
volumes:
- /srv/pubblici:/html

6
thttpd/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM alpine:latest
RUN apk add thttpd
ENTRYPOINT ["thttpd", "-D", "-d", "/html"]