Base image extension with s6-overlay:
- Based on robbertkl/base
- Uses s6-overlay
- Runs
cronandrsyslogdservices - Helper service to output arbitrary logs to
stdoutorstderr - Basic SSL certificate preparation
Just extend it in your Dockerfile using FROM. Example:
FROM robbertkl/base-s6
RUN cleaninstall package1 package2 package3
RUN echo /var/log/custom.log >> /etc/services.d/logs/stderr
...
To have your custom logs show up in docker logs, you can append your name to either /etc/services.d/logs/stdout or /etc/services.d/logs/stderr.
As a convention, please copy or mount your SSL files to /private/ssl named cert.pem, key.pem and ca.pem. A default (snakeoil) certificate will be provided as a fallback. Create custom (combined) pem bundles from these files in your s6 run scripts.
Alternatively, you can mount a Let's Encrypt configuration to /etc/letsencrypt and set LETSENCRYPT_HOST to the hostname of the certificate to use. Symlinks with the correct names will then be create in /private/ssl.
- Robbert Klarenbeek, robbertkl@renbeek.nl
This repo is published under the MIT License.