mirror of
https://github.com/pldubouilh/gossa
synced 2025-12-06 08:22:32 +01:00
1.3 KiB
1.3 KiB
the master branch is automatically built and pushed to dockerhub under pldubouilh/gossa.
# pull from dockerhub and run
% sudo docker run -v ~/LocalDirToShare:/shared -p 8001:8001 pldubouilh/gossa
if you prefer building the image yourself :
# build gossa within a build container, needs to be ran within the sources, ../ from here, and run
% docker build -t gossa -f support/build.Dockerfile .
% sudo docker run -v ~/LocalDirToShare:/shared -p 8001:8001 gossa
the options are settable through environment variables that can be passed starting off the docker image.
a fancy docker image using Caddy is also provided. have a look at the simple config file Caddyfile, it shows how to use http basic authentication, and automatic TLS for hands-free https 🎉
# checkout the caddy config, build, and run docker image
% vim caddy.Dockerfile
% docker build -t gossa-caddy -f caddy.Dockerfile .
% sudo docker run -v ~/LocalDirToShare:/shared -v `pwd`/Caddyfile:/Caddyfile --net=host gossa-caddy
a docker-compose example image is also provided. running docker compose should be straightforward : docker-compose up . have a look in docker-compose.yml for further configuration.