From 19ceaa3cd29c4c94b2407c900455de78c31a567b Mon Sep 17 00:00:00 2001 From: Blackstareye <> Date: Fri, 24 Jan 2025 20:25:15 +0100 Subject: [PATCH 1/1] example docker compose with availabilities (defaulted according to config) --- Dockerfile | 3 ++- docker-compose.yaml | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 823c1dd..6bf9788 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM php:8.1-fpm-alpine LABEL org.opencontainers.image.authors="jerome@jutteau.fr" +ARG INI="php" # base install RUN apk update && \ @@ -11,7 +12,7 @@ RUN apk update && \ COPY --chmod=550 docker/cleanup.sh docker/run.sh / COPY --chmod=640 docker/docker_config.php /docker_config.php -COPY docker/php.ini /usr/local/etc/php/php.ini +COPY docker/${INI}.ini /usr/local/etc/php/php.ini COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf # Install Jirafeau diff --git a/docker-compose.yaml b/docker-compose.yaml index 6b9c57b..69fe665 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,12 +1,27 @@ services: web: build: + no_cache: true + args: + # INI: php_debug #change the ini context: . # or ../Dockerfile if we put it in the ./docker folder volumes: - ./jirafeau_data:/data environment: - - ADMIN_PASSWORD='p4ssw0rd' - + ADMIN_PASSWORD: p4ssw0rd + #LANG: en + AVAILABILITIES: | + { + "minute": true, + "hour": true, + "day": true, + "week": true, + "fortnight": true, + "month": true, + "quarter": false, + "year": false, + "none": false + } ports: - 8080:80 -- 2.34.1