]> git.p6c8.net - jirafeau_project.git/commitdiff
example docker compose with availabilities (defaulted according to config)
authorBlackstareye <>
Fri, 24 Jan 2025 19:25:15 +0000 (20:25 +0100)
committerBlackstareye <>
Fri, 24 Jan 2025 19:25:15 +0000 (20:25 +0100)
Dockerfile
docker-compose.yaml

index 823c1dd37c4d8a7f2ea60e4b0905225751af4d15..6bf9788ffeeb7d996fb49da713544d9a51fc6b91 100644 (file)
@@ -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
index 6b9c57b7249746a0e060e93c4d608a00b2d83e75..69fe6652bab63e580947a56b63514a280e7edf96 100644 (file)
@@ -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
 

patrick-canterino.de