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

Build with S6 (bullseye)

parent 6a399e3a
No related branches found
No related tags found
1 merge request!62Build with S6 (bullseye)
Pipeline #23164 passed
......@@ -4,7 +4,7 @@ ADD . /build
WORKDIR /build
RUN /build/install.sh
FROM registry.git.autistici.org/ai3/docker/apache2-php-base:master
FROM registry.git.autistici.org/ai3/docker/apache2-php-base:s6
COPY --from=build /build/app/ /opt/noblogs/www
......@@ -13,7 +13,6 @@ COPY docker/wp-config.php /opt/noblogs/www/wp-config.php
COPY docker/wp-cache-config.php /opt/noblogs/www/wp-content/wp-cache-config.php
COPY docker/conf /tmp/conf
COPY docker/build.sh /tmp/build.sh
COPY docker/post-upgrade.sh /post-upgrade.sh
RUN /tmp/build.sh && rm /tmp/build.sh
......
clean_sessions.service: {
type: cron,
interval: "10,40 * * * *",
command: "/usr/bin/find /var/lib/php/sessions -mindepth 1 -type f -mtime +1 -delete",
}
noblogs_upgrade.service: {
type: oneshot,
stdout: inherit,
command: "/post-upgrade.sh",
ignore_failures: true,
process_timeout: 7200,
exit_kills: false,
}
......@@ -44,4 +44,4 @@ if [ $cur_schema_version -lt $new_schema_version ]; then
echo "network upgrade message removed"
fi
exit 0
\ No newline at end of file
exit 0
[www]
user = ${PHP_FPM_USER}
listen = /run/php/php7.3-fpm.sock
listen = /run/php/php7.4-fpm.sock
pm = dynamic
pm.max_children = 75
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment