My collection of docker-compose files used to setup my self-hosted services.
Everything runs through Docker, and is configured with docker-compose files. To setup everything, you will need to do a few things before you start all of the dockers.
For the reverse proxy to work properly with the domain ak2316.sh
, you need to generate some certificates.
These instructions are written for MacOS, but shouldn't be too hard to adapt to other settings.
# Create a local CA
brew install mkcert
mkcert -install
# Generate a trusted local certificate
cd ./caddy/certs
mkcert "*.ak2316.sh"
mkcert "ak2316.sh"
cd ../..
You will need to edit the /etc/host
file, adding
127.0.0.1 ak2316.sh firefly.ak2316.sh paperless.ak2316.sh
this will need to be modified if more services are added.
Lastly you'll need to create the docker network:
docker network create selfhosted
You can boot up all of the services with
./scripts/up.sh
and you can tear it down with
./scripts/down.sh
Paperless-ng
You will need to create a superuser.
# Create a superuser
cd paperless-ng
docker compose run --rm webserver createsuperuser