浏览代码

rimosso prefisso 'local/'

mauro 3 周之前
父节点
当前提交
2afd6714b7
共有 16 个文件被更改,包括 782 次插入45 次删除
  1. 157 0
      docker-compose.09092025
  2. 196 0
      docker-compose.10112025
  3. 207 0
      docker-compose.11112025
  4. 68 27
      docker-compose.yml
  5. 6 0
      ftp/ftp.sh
  6. 18 0
      ftp/ftp.yml
  7. 8 0
      gogs/nothing.sh
  8. 51 0
      lychee/lychee.yml
  9. 7 0
      lychee/start.sh
  10. 2 2
      mqtt/mqtt.yml
  11. 16 16
      php-fpm/php-fpm.yml
  12. 8 0
      samba/samba.sh
  13. 13 0
      samba/samba.yml
  14. 8 0
      wiki/nothing.sh
  15. 8 0
      wiki/wiki.sh
  16. 9 0
      wiki/wiki.yml

+ 157 - 0
docker-compose.09092025

@@ -0,0 +1,157 @@
+services:
+  homeassistant:
+    image: ghcr.io/home-assistant/home-assistant:stable
+    privileged: true
+    restart: unless-stopped
+    volumes:
+      - /mnt/Data/Software/Homeassistant:/config
+      - /run/dbus:/run/dbus:ro
+    environment:
+     TZ: Europe/Rome
+    ports:
+      - 8123:8123
+  
+  mariadb:
+    image: local/mariadb
+    build: 
+      dockerfile: ./mariadb/mariadb.yml
+    volumes:
+      - /home/MariaDb/var/lib/mysql:/var/lib/mysql
+    restart: unless-stopped
+    ports:
+      - 3306:3306
+    entrypoint: ['bin/bash','/root/mariadb.sh']
+    environment:
+      MARIADB_PASSWORD: "PassworD"
+
+  console:
+    image: console
+    build:
+      dockerfile: ./console/console.yml
+    volumes:
+      - /mnt/Data/Software/Shared_data:/home/shared_data
+      - archivio_data:/mnt/Data
+    entrypoint: ['bin/bash','/root/console.sh']
+    restart: unless-stopped 
+
+  gogs:
+    image: local/gogs
+    build: 
+      dockerfile: ./gogs/gogs.yml
+    volumes:
+      - /mnt/Data/Software/Gogs:/home/gogs
+    restart: unless-stopped
+    ports:
+      - 3000:3000
+    entrypoint: ['bin/bash','/root/gogs.sh']
+
+  password:
+    image: local/password
+    build: 
+      dockerfile: ./password/password.yml
+    volumes:
+      - /mnt/Data/Software/Password:/home/password
+    restart: unless-stopped
+    ports:
+      - 3020:3020
+    entrypoint: ['bin/bash','/root/password.sh']
+    environment:
+      PASSWORDWEB_PORT: 0.0.0.0:3020
+      PASSWORDWEB_FILE: /home/password/PasswordFiles/multiword.txt
+      PASSWORDWEB_PIN: 8
+
+  syncthing:
+    image: local/syncthing
+    build: 
+      dockerfile: ./syncthing/syncthing.yml
+    volumes:
+      - /home/Syncthing:/home/syncthing
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - software_data:/mnt/Data/Software
+    restart: unless-stopped
+    ports:
+      - 8384:8384
+    entrypoint: ['/bin/bash','/root/syncthing.sh']
+
+  mqtt:
+    image: local/mqtt
+    build:
+      dockerfile: ./mqtt/mqtt.yml
+    restart: unless-stopped
+    ports:
+      - 1883:1883
+    entrypoint: ['/bin/bash','/root/mqtt.sh']
+    volumes:
+      - mqtt_etc:/mnt/Software
+
+  ftp:
+    image: local/ftp
+    build:
+      dockerfile: ./ftp/ftp.yml
+    ports:
+      - 21:21
+      - 49152-49352:49152-49352
+    entrypoint: ['/bin/bash','/root/ftp.sh']
+    volumes: 
+      - archivio_data:/mnt/Archivio
+    restart: unless-stopped
+
+  #lychee:
+  #  image: local/lychee
+  #  build:
+  #    dockerfile: ./lychee/lychee.yml
+  #  depends_on:
+  #    - nginx
+  #    - php-fpm
+  #  #restart: unless-stopped
+
+volumes:
+  mariadb_data:
+  gogs_data:
+  shared_data:
+  password_data:
+  syncthing_data:
+
+  archivio_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Archivio"
+
+  scansioni_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Scansioni"
+
+  software_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+
+  nextcloud_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_data"
+
+  nextcloud_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_etc"
+
+  mqtt_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+

+ 196 - 0
docker-compose.10112025

@@ -0,0 +1,196 @@
+services:
+  homeassistant:
+    image: ghcr.io/home-assistant/home-assistant:stable
+    privileged: true
+    restart: unless-stopped
+    volumes:
+      - /mnt/Data/Software/Homeassistant:/config
+      - /run/dbus:/run/dbus:ro
+    environment:
+     TZ: Europe/Rome
+    ports:
+      - 8123:8123
+  
+  mariadb:
+    image: local/mariadb
+    build: 
+      dockerfile: ./mariadb/mariadb.yml
+    volumes:
+      - /home/MariaDb/var/lib/mysql:/var/lib/mysql
+    restart: unless-stopped
+    ports:
+      - 3306:3306
+    entrypoint: ['bin/bash','/root/mariadb.sh']
+    environment:
+      MARIADB_PASSWORD: "PassworD"
+
+  console:
+    image: console
+    build:
+      dockerfile: ./console/console.yml
+    volumes:
+      - /mnt/Data/Software/Shared_data:/home/shared_data
+      - archivio_data:/mnt/Data
+    entrypoint: ['bin/bash','/root/console.sh']
+    restart: unless-stopped 
+
+  gogs:
+    image: local/gogs
+    build: 
+      dockerfile: ./gogs/gogs.yml
+    volumes:
+      - /mnt/Data/Software/Gogs:/home/gogs
+    restart: unless-stopped
+    ports:
+      - 3000:3000
+    entrypoint: ['bin/bash','/root/gogs.sh']
+
+  password:
+    image: local/password
+    build: 
+      dockerfile: ./password/password.yml
+    volumes:
+      - /mnt/Data/Software/Password:/home/password
+    restart: unless-stopped
+    ports:
+      - 3020:3020
+    entrypoint: ['bin/bash','/root/password.sh']
+    environment:
+      PASSWORDWEB_PORT: 0.0.0.0:3020
+      PASSWORDWEB_FILE: /home/password/PasswordFiles/multiword.txt
+      PASSWORDWEB_PIN: 8
+
+  syncthing:
+    image: local/syncthing
+    build: 
+      dockerfile: ./syncthing/syncthing.yml
+    volumes:
+      - /home/Syncthing:/home/syncthing
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - software_data:/mnt/Data/Software
+    restart: unless-stopped
+    ports:
+      - 8384:8384
+    entrypoint: ['/bin/bash','/root/syncthing.sh']
+
+  mqtt:
+    image: local/mqtt
+    build:
+      dockerfile: ./mqtt/mqtt.yml
+    restart: unless-stopped
+    ports:
+      - 1883:1883
+    entrypoint: ['/bin/bash','/root/mqtt.sh']
+    volumes:
+      - mqtt_etc:/mnt/Software
+
+  ftp:
+    image: local/ftp
+    build:
+      dockerfile: ./ftp/ftp.yml
+    ports:
+      - 21:21
+      - 49152-49352:49152-49352
+    entrypoint: ['/bin/bash','/root/ftp.sh']
+    volumes: 
+      - archivio_data:/mnt/Archivio
+    restart: unless-stopped
+
+  samba:
+    image: local/samba
+    build: 
+      dockerfile: ./samba/samba.yml
+    volumes:
+      - samba_etc:/etc/samba
+      - samba_var:/var/lib/samba
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - gabriella_data:/mnt/Data/Gabriella
+    restart: unless-stopped
+    ports:
+      - 445:445
+      - 139:139
+    entrypoint: ['/bin/bash','/root/samba.sh']
+
+
+  #lychee:
+  #  image: local/lychee
+  #  build:
+  #    dockerfile: ./lychee/lychee.yml
+  #  depends_on:
+  #    - nginx
+  #    - php-fpm
+  #  #restart: unless-stopped
+
+volumes:
+  mariadb_data:
+  gogs_data:
+  shared_data:
+  password_data:
+  syncthing_data:
+
+  archivio_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Archivio"
+
+  gabriella_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Gabriella"
+
+
+  scansioni_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Scansioni"
+
+  software_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+
+  nextcloud_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_data"
+
+  nextcloud_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_etc"
+
+  mqtt_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+
+  samba_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/etc"
+
+  samba_var:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/var"
+

+ 207 - 0
docker-compose.11112025

@@ -0,0 +1,207 @@
+services:
+  homeassistant:
+    image: ghcr.io/home-assistant/home-assistant:stable
+    privileged: true
+    restart: unless-stopped
+    volumes:
+      - /mnt/Data/Software/Homeassistant:/config
+      - /run/dbus:/run/dbus:ro
+    environment:
+     TZ: Europe/Rome
+    ports:
+      - 8123:8123
+  
+  mariadb:
+    image: local/mariadb
+    build: 
+      dockerfile: ./mariadb/mariadb.yml
+    volumes:
+      - /home/MariaDb/var/lib/mysql:/var/lib/mysql
+    restart: unless-stopped
+    ports:
+      - 3306:3306
+    entrypoint: ['bin/bash','/root/mariadb.sh']
+    environment:
+      MARIADB_PASSWORD: "PassworD"
+
+  console:
+    image: console
+    build:
+      dockerfile: ./console/console.yml
+    volumes:
+      - /mnt/Data/Software/Shared_data:/home/shared_data
+      - archivio_data:/mnt/Data
+    entrypoint: ['bin/bash','/root/console.sh']
+    restart: unless-stopped 
+
+  gogs:
+    image: local/gogs
+    build: 
+      dockerfile: ./gogs/gogs.yml
+    volumes:
+      - /mnt/Data/Software/Gogs:/home/gogs
+    restart: unless-stopped
+    ports:
+      - 3000:3000
+    entrypoint: ['bin/bash','/root/gogs.sh']
+
+  wiki:
+    image: wiki
+    build: 
+      dockerfile: ./wiki/wiki.yml
+    volumes:
+      - /mnt/Data/Software/Wiki:/home/wiki
+    restart: unless-stopped
+    ports:
+      - 3100:8080
+    entrypoint: ['bin/bash','/root/wiki.sh']
+
+  password:
+    image: local/password
+    build: 
+      dockerfile: ./password/password.yml
+    volumes:
+      - /mnt/Data/Software/Password:/home/password
+    restart: unless-stopped
+    ports:
+      - 3020:3020
+    entrypoint: ['bin/bash','/root/password.sh']
+    environment:
+      PASSWORDWEB_PORT: 0.0.0.0:3020
+      PASSWORDWEB_FILE: /home/password/PasswordFiles/multiword.txt
+      PASSWORDWEB_PIN: 8
+
+  syncthing:
+    image: local/syncthing
+    build: 
+      dockerfile: ./syncthing/syncthing.yml
+    volumes:
+      - /home/Syncthing:/home/syncthing
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - software_data:/mnt/Data/Software
+    restart: unless-stopped
+    ports:
+      - 8384:8384
+    entrypoint: ['/bin/bash','/root/syncthing.sh']
+
+  mqtt:
+    image: local/mqtt
+    build:
+      dockerfile: ./mqtt/mqtt.yml
+    restart: unless-stopped
+    ports:
+      - 1883:1883
+    entrypoint: ['/bin/bash','/root/mqtt.sh']
+    volumes:
+      - mqtt_etc:/mnt/Software
+
+  ftp:
+    image: local/ftp
+    build:
+      dockerfile: ./ftp/ftp.yml
+    ports:
+      - 21:21
+      - 49152-49352:49152-49352
+    entrypoint: ['/bin/bash','/root/ftp.sh']
+    volumes: 
+      - archivio_data:/mnt/Archivio
+    restart: unless-stopped
+
+  samba:
+    image: local/samba
+    build: 
+      dockerfile: ./samba/samba.yml
+    volumes:
+      - samba_etc:/etc/samba
+      - samba_var:/var/lib/samba
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - gabriella_data:/mnt/Data/Gabriella
+    restart: unless-stopped
+    ports:
+      - 445:445
+      - 139:139
+    entrypoint: ['/bin/bash','/root/samba.sh']
+
+
+  #lychee:
+  #  image: local/lychee
+  #  build:
+  #    dockerfile: ./lychee/lychee.yml
+  #  depends_on:
+  #    - nginx
+  #    - php-fpm
+  #  #restart: unless-stopped
+
+volumes:
+  mariadb_data:
+  gogs_data:
+  shared_data:
+  password_data:
+  syncthing_data:
+
+  archivio_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Archivio"
+
+  gabriella_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Gabriella"
+
+
+  scansioni_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Scansioni"
+
+  software_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+
+  nextcloud_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_data"
+
+  nextcloud_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Nextcloud_etc"
+
+  mqtt_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software"
+
+  samba_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/etc"
+
+  samba_var:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/var"
+

+ 68 - 27
docker-compose.yml

@@ -12,7 +12,7 @@ services:
       - 8123:8123
   
   mariadb:
-    image: local/mariadb
+    image: mariadb
     build: 
       dockerfile: ./mariadb/mariadb.yml
     volumes:
@@ -35,7 +35,7 @@ services:
     restart: unless-stopped 
 
   gogs:
-    image: local/gogs
+    image: gogs
     build: 
       dockerfile: ./gogs/gogs.yml
     volumes:
@@ -45,8 +45,19 @@ services:
       - 3000:3000
     entrypoint: ['bin/bash','/root/gogs.sh']
 
+  wiki:
+    image: wiki
+    build: 
+      dockerfile: ./wiki/wiki.yml
+    volumes:
+      - /mnt/Data/Software/Wiki:/home/wiki
+    restart: unless-stopped
+    ports:
+      - 3100:8080
+    entrypoint: ['bin/bash','/root/wiki.sh']
+
   password:
-    image: local/password
+    image: password
     build: 
       dockerfile: ./password/password.yml
     volumes:
@@ -61,7 +72,7 @@ services:
       PASSWORDWEB_PIN: 8
 
   syncthing:
-    image: local/syncthing
+    image: syncthing
     build: 
       dockerfile: ./syncthing/syncthing.yml
     volumes:
@@ -74,29 +85,8 @@ services:
       - 8384:8384
     entrypoint: ['/bin/bash','/root/syncthing.sh']
 
-  nginx:
-    image: local/nginx
-    build:
-      dockerfile: ./nginx/nginx.yml
-    volumes:
-      - archivio_data:/mnt/Data/Archivio
-      - /mnt/Data/Software/Nginx/etc:/etc/nginx
-    ports:
-      - 8080:8080
-    entrypoint: ['/bin/bash','/root/nginx.sh']
-    restart: unless-stopped
-
-  php-fpm:
-    image: local/php-fpm
-    build:
-      dockerfile: ./php-fpm/php-fpm.yml
-    depends_on:
-      - nginx 
-    restart: unless-stopped
-    entrypoint: ['/bin/bash','/root/php-fpm.sh']
-
   mqtt:
-    image: local/mqtt
+    image: mqtt
     build:
       dockerfile: ./mqtt/mqtt.yml
     restart: unless-stopped
@@ -106,8 +96,37 @@ services:
     volumes:
       - mqtt_etc:/mnt/Software
 
+  ftp:
+    image: ftp
+    build:
+      dockerfile: ./ftp/ftp.yml
+    ports:
+      - 21:21
+      - 49152-49352:49152-49352
+    entrypoint: ['/bin/bash','/root/ftp.sh']
+    volumes: 
+      - archivio_data:/mnt/Archivio
+    restart: unless-stopped
+
+  samba:
+    image: samba
+    build: 
+      dockerfile: ./samba/samba.yml
+    volumes:
+      - samba_etc:/etc/samba
+      - samba_var:/var/lib/samba
+      - archivio_data:/mnt/Data/Archivio
+      - scansioni_data:/mnt/Data/Scansioni
+      - gabriella_data:/mnt/Data/Gabriella
+    restart: unless-stopped
+    ports:
+      - 445:445
+      - 139:139
+    entrypoint: ['/bin/bash','/root/samba.sh']
+
+
   #lychee:
-  #  image: local/lychee
+  #  image: lychee
   #  build:
   #    dockerfile: ./lychee/lychee.yml
   #  depends_on:
@@ -129,6 +148,14 @@ volumes:
       o: "addr=127.0.0.1,soft,rw"
       device: ":/mnt/Data/Archivio"
 
+  gabriella_data:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Gabriella"
+
+
   scansioni_data:
     driver: local
     driver_opts:
@@ -164,3 +191,17 @@ volumes:
       o: "addr=127.0.0.1,soft,rw"
       device: ":/mnt/Data/Software"
 
+  samba_etc:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/etc"
+
+  samba_var:
+    driver: local
+    driver_opts:
+      type: nfs
+      o: "addr=127.0.0.1,soft,rw"
+      device: ":/mnt/Data/Software/Samba_CC/var"
+

+ 6 - 0
ftp/ftp.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+echo "posizione $(pwd)"
+echo "abcd.1234" | ftpasswd --passwd --stdin --file=/etc/proftpd/ftpd.passwd --name=storage --uid=1114 --gid=1002 --home=/mnt/Archivio/ --shell=/bin/bash
+proftpd
+touch /tmp/null
+tail -f /tmp/null

+ 18 - 0
ftp/ftp.yml

@@ -0,0 +1,18 @@
+FROM alpine:latest
+RUN apk add bash
+RUN apk add gcompat
+RUN apk add proftpd
+run apk add proftpd-utils
+RUN mkdir /run/proftpd
+RUN echo "DefaultRoot ~" >> /etc/proftpd/proftpd.conf
+RUN echo "RequireValidShell off" >> /etc/proftpd/proftpd.conf
+RUN echo "AuthUserFile /etc/proftpd/ftpd.passwd" >> /etc/proftpd/proftpd.conf
+#RUN echo "AuthGroupFile /etc/proftpd/ftpd.group" >> /etc/proftpd/proftpd.conf
+RUN echo "PassivePorts 49152 49252" >> /etc/proftpd/proftpd.conf
+RUN addgroup -g 1002 storage 
+RUN adduser -u 1114 -G storage -h /mnt/Archivio -s /bin/bash -H -D storage
+#RUN ftpasswd --passwd --stdin --file=/etc/proftpd/ftpd.passwd --name=storage --uid=1114 --gid=1002 --home=/mnt/Archivio/ --shell=/bin/bash
+COPY ftp/ftp.sh /root
+RUN chmod a+x /root/ftp.sh
+CMD ['/bin/bash','/root/ftp.sh']
+

+ 8 - 0
gogs/nothing.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+cd /home/gogs
+echo "posizione $(pwd)"
+chown gogs:gogs -R /home/gogs
+chmod a+x /home/gogs/gogs
+echo "Running gogs"
+su gogs -s /bin/bash -c "./gogs web"
+

+ 51 - 0
lychee/lychee.yml

@@ -0,0 +1,51 @@
+# Environment variables
+ENV PUID='1000'
+ENV PGID='1000'
+ENV USER='lychee'
+ENV PHP_TZ=UTC
+
+# Install base dependencies, add user and group, install php libraries
+RUN \
+    set -ev && \
+    apt-get update && \
+    apt-get upgrade -qy && \
+    apt-get install -qy --no-install-recommends\
+    ca-certificates \
+    curl \
+    apt-transport-https && \
+    curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb && \
+    dpkg -i /tmp/debsuryorg-archive-keyring.deb && \
+    sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" > /etc/apt/sources.list.d/php.list' && \
+    apt-get update && \
+    apt-get install -qy --no-install-recommends \
+    adduser \
+    nginx-light \
+    php8.4-mysql \
+    php8.4-pgsql \
+    php8.4-sqlite3 \
+    php8.4-imagick \
+    php8.4-mbstring \
+    php8.4-gd \
+    php8.4-xml \
+    php8.4-zip \
+    php8.4-fpm \
+    php8.4-redis \
+    php8.4-bcmath \
+    php8.4-intl \
+    libimage-exiftool-perl \
+    ffmpeg \
+    jpegoptim \
+    optipng \
+    pngquant \
+    gifsicle \
+    webp \
+    unzip && \
+    addgroup --gid "$PGID" "$USER" && \
+    adduser --gecos '' --no-create-home --disabled-password --uid "$PUID" --gid "$PGID" "$USER"
+
+COPY nginx.conf /etc/nginx/nginx.conf
+
+COPY start.sh /start.sh
+RUN chmod +x /start.sh
+
+CMD ["/start.sh"]

+ 7 - 0
lychee/start.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Start PHP-FPM
+php-fpm8.4 -D
+# Start Nginx in the foreground
+exec nginx
+

+ 2 - 2
mqtt/mqtt.yml

@@ -2,8 +2,8 @@ FROM  debian:stable
 RUN apt update -y
 RUN apt upgrade -y
 RUN apt install -y  mosquitto
-run groupadd -g 1002 mqtt
-run useradd -g mqtt -u 1114 -s /bin/false -d /home/mqtt mqtt
+RUN groupadd -g 1002 mqtt
+RUN useradd -g mqtt -u 1114 -s /bin/false -d /home/mqtt mqtt
 COPY mqtt/mqtt.sh /root/
 RUN chmod a+x /root/mqtt.sh
 RUN mkdir /run/mosquitto

+ 16 - 16
php-fpm/php-fpm.yml

@@ -5,22 +5,22 @@ RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/deb
 RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
 RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
 RUN apt update -y
-run apt dist-upgrade -y
-run apt install php8.3-fpm -y
-run apt install php8.3-mysql -y
-run apt install php8.3-ctype -y
-run apt install php8.3-curl -y
-run apt install php8.3-dom -y
-run apt install php8.3-fileinfo -y
-run apt install php8.3-gd -y
-run apt install php8.3-xmlrpc -y
-run apt install php8.3-mbstring -y
-run apt install php8.3-posix -y
-run apt install php8.3-xml -y
-run apt install php8.3-zip -y
-run apt install -y php8.3-redis
-run apt install -y php8.3-memcache
-run apt install -y php8.3-memcached
+RUN apt dist-upgrade -y
+RUN apt install php8.3-fpm -y
+RUN apt install php8.3-mysql -y
+RUN apt install php8.3-ctype -y
+RUN apt install php8.3-curl -y
+RUN apt install php8.3-dom -y
+RUN apt install php8.3-fileinfo -y
+RUN apt install php8.3-gd -y
+RUN apt install php8.3-xmlrpc -y
+RUN apt install php8.3-mbstring -y
+RUN apt install php8.3-posix -y
+RUN apt install php8.3-xml -y
+RUN apt install php8.3-zip -y
+RUN apt install -y php8.3-redis
+RUN apt install -y php8.3-memcache
+RUN apt install -y php8.3-memcached
 COPY php-fpm/php-fpm.sh /root/
 RUN chmod a+x /root/php-fpm.sh
 CMD ['/bin/bash','/root/php-fpm.sh']

+ 8 - 0
samba/samba.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+cd /root
+/etc/init.d/nmbd start
+/etc/init.d/smbd start
+echo "posizione $(pwd)"
+touch /tmp/null
+tail -f /tmp/null
+

+ 13 - 0
samba/samba.yml

@@ -0,0 +1,13 @@
+FROM debian:stable
+RUN apt update -y
+RUN apt upgrade -y
+RUN apt install -y samba
+RUN groupadd -g 1002 storage
+RUN useradd -g storage -u 1114 -m -d /home/samba storage
+RUN groupadd -g 1001 mauro
+RUN useradd -g mauro -u 1000 -m -d /dev/null mauro
+RUN chown -R storage:storage /home/samba
+COPY samba/samba.sh /root/
+RUN chmod a+x /root/samba.sh
+CMD ['/bin/bash','/root/samba.sh']
+

+ 8 - 0
wiki/nothing.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+cd /home/gogs
+echo "posizione $(pwd)"
+chown gogs:gogs -R /home/gogs
+chmod a+x /home/gogs/gogs
+echo "Running gogs"
+su gogs -s /bin/bash -c "./gogs web"
+

+ 8 - 0
wiki/wiki.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+cd /home/wiki
+echo "posizione $(pwd)"
+chown wiki:wiki -R /home/wiki
+chmod a+x /home/wiki/wiki-go
+echo "Running wiki"
+su wiki -s /bin/bash -c "./wiki-go"
+

+ 9 - 0
wiki/wiki.yml

@@ -0,0 +1,9 @@
+FROM debian:latest
+RUN apt update && apt dist-upgrade -y
+RUN apt install git -y
+COPY wiki/wiki.sh /root
+RUN groupadd -g 1002 wiki
+RUN useradd -g wiki -u 1114 -s /bin/false -d /home/wiki wiki
+RUN chmod a+x /root/wiki.sh
+CMD ['/bin/bash','/root/wiki.sh']
+