Go to file
paspo 84041f93b5
All checks were successful
continuous-integration/drone/push Build is passing
fix nginx for php74 image
2024-12-19 14:12:57 +01:00
.gitea/workflows add vulscan 2024-12-16 20:46:24 +01:00
rootfs typo 2024-12-19 12:20:39 +01:00
rootfs-php74 fix nginx for php74 image 2024-12-19 14:12:57 +01:00
.drone.yml php7.4 image 2024-12-19 11:37:57 +01:00
.gitignore sftp access 2024-12-13 11:34:16 +01:00
docker-compose-sample.yaml docs 2024-12-13 12:22:24 +01:00
Dockerfile added php modules 2024-12-19 09:54:38 +01:00
Dockerfile-php74 php7.4 image 2024-12-19 11:37:57 +01:00
LICENSE added license 2024-12-13 12:07:55 +01:00
README.md run php with dedicated user 2024-12-19 08:53:37 +01:00

webserver-nginx

Build Status

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
      - 2222:22
    volumes:
      - ./www:/data/www
      - ./ssh:/ssh # add authorized_keys file here
      - ./extra_nginx.conf:/etc/nginx/custom.d/extra.conf # optional
    environment:
      PHP: php84 # none (default), php82, php83, php84
      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 directory and its contents will be chowned to $PUID:$PGID and chmodded to 0755 for directories and 0644 for files at container start.