I'm new to docker and want to get lighttpd working using https://hub.docker.com/r/sebp/lighttpd my compose file is this
QuoteDisplay Morelighttpd:
image: sebp/lighttpd
volumes:
- /var/www/html:/srv/dev-disk-by-uuid-xxxxxxxxxxxxxxxx/www
- /etc/lighttpd:/etc/lighttpd
ports:
“8999:80/tcp”
but that fails to build
Quote500 - Internal Server Error
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker build --progress plain --tag 'uploader' '/srv/dev-disk-by-uuid-12388cef-cfe4-4169-97a0-fdfd4f3ae460/docker/uploader/' 2>&1': #0 building with "default" instance using docker driver #1 [internal] load .dockerignore #1 transferring context: #1 transferring context: 2B 0.0s done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 408B 0.0s done #2 DONE 0.1s Dockerfile:7 -------------------- 5 | # 6 | 7 | >>> lighttpd: 8 | image: sebp/lighttpd 9 | volumes: -------------------- ERROR: failed to solve: dockerfile parse error on line 7: unknown instruction: lighttpd:
If i start in the command line it runs but get 404 when going to port 8999
Quotedocker run --rm -t -v /var/www/html:/srv/dev-disk-by-uuid-xxxxxxxx/www -p 8999:80 sebp/lighttpd
docker run --rm -t -v /var/www/html:/srv/dev-disk-by-uuid-xxxxxxxxxxxx/www -p 8999:80 sebp/lighttpd