taskd-dockerized is a containerized Taskwarrior server based upon ogarcia's and x4121's versions. It brings such niceness as the ability to log on stdout.
docker build -t taskd . --build-arg ALPINE_VERSION=latest
If no config and public key infrastructure are present in the persistent directory of your choosing, the executable creates certificates and keys in the pki subdirectory. In this case, it is mandatory to provide the CERT_CN environment variable.
If you intend to use those, you should set up your client according to the section 'Client configuration'.
Attention, the container will use the host's network. I was unable to make the binding of taskd's socket and the TLS handshake to work.
docker run -d --name taskd \
--network=host
-v path_to_persistent_host_dir:/var/taskd \
-e CERT_CN="domain_name_or_ip" \
[-e CERT_ORGANIZATION="Evil Corp"] \
[-e CERT_COUNTRY="USA"] \
[-e CERT_STATE="NY"] \
[-e CERT_LOCALITY="New York City"] \
taskd
Run on your server:
docker exec taskd add_user your_name [your_organization]