Skip to content
Snippets Groups Projects
Commit 6d547052 authored by ale's avatar ale
Browse files

Use S6 instead of chaperone

parent 2f011aae
No related branches found
No related tags found
1 merge request!4Use S6
FROM registry.git.autistici.org/ai3/docker/apache2-base:bullseye
FROM registry.git.autistici.org/ai3/docker/apache2-base:s6
COPY conf /tmp/conf
COPY build.sh /tmp/build.sh
......
fpm-setup.service: {
command: "/bin/mkdir -p /run/php",
service_groups: INIT,
type: oneshot,
}
fpm.service: {
command: "/usr/sbin/php-fpm7.4 --force-stderr --nodaemonize",
exit_kills: true,
}
fpm-exporter.service: {
command: "sh -c '. /etc/apache2/envvars && HOME=/ exec /usr/sbin/php-fpm-exporter server --phpfpm.scrape-uri=unix:///run/php/php7.4-fpm.sock\\;/status --web.listen-address=:$PHP_FPM_EXPORTER_PORT'",
restart: true,
}
#!/bin/sh
. /etc/apache2/envvars
export HOME=/
exec /usr/sbin/php-fpm-exporter server --phpfpm.scrape-uri=unix:///run/php/php7.4-fpm.sock\\;/status --web.listen-address=:$PHP_FPM_EXPORTER_PORT
#!/usr/bin/execlineb -S0
s6-svscanctl -t /var/run/s6/services
#!/bin/sh
mkdir -p /run/php
exec /usr/sbin/php-fpm7.4 --force-stderr -nodaemonize
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment