2025-07-30 16:17:45 +02:00
2025-07-10 20:08:26 +02:00
2025-07-30 16:17:45 +02:00
2024-12-13 11:34:16 +01:00
2024-12-13 12:22:24 +01:00
2025-07-30 14:52:04 +02:00
2024-12-13 12:07:55 +01:00
2025-07-30 13:04:14 +02:00

webserver-nginx

Small webserver with PHP support and SFTP access

usage

Use this docker-compose.yaml

services:
  web:
    image: docker.asperti.com/paspo/webserver-nginx
    ports:
      - 8888:80 # web server
      - 8889:8081 # stats page
      - 8890:8080 # webdav access
      - 2222:22 # sftp access
    volumes:
      - ./data:/data
      - ./ssh:/ssh # add authorized_keys file here
      - ./extra_nginx.conf:/etc/nginx/custom.d/extra.conf # optional
      - ./htpasswd:/app/htpasswd # optional, for webdav auth
    environment:
      LOG_DAYS: 14 # default 7
      WEBDAV_PORT: 8080 # default: 8080
      STATS_PORT: 8081 # default: 8081
      PHP: php84 # none (default), php82, php83, php84
      POSTSIZE: 256M # default: 256M
      PUID: 1000 # default: 1000
      PGID: 1000 # default: 1000
      TZ: Etc/UTC  # default: Etc/UTC
      FPM_MAX_CHILDREN: 5 # default: 5
      FPM_START_SERVERS: 1 # default: 1
      FPM_MIN_SPARE_SERVERS: 1 # default: 1
      FPM_MAX_SPARE_SERVERS: 3 # default: 3      

The /data/www and /data/logs directories and their contents will be chowned to $PUID:$PGID and chmodded to 0755 for directories and 0644 for files at container start.

Description
No description provided
Readme GPL-3.0 173 KiB
Languages
Shell 83%
HTML 8.8%
Dockerfile 8.2%