Sign inSign up

punkrock/apache-php-sftp

By punkrock

•Updated about 3 years ago

Based on Ubuntu Server 22.04 LTS contains Apache 2.4.52, PHP 8.1.2 and an embedded SFTP server

Image
0

1.1K

punkrock/apache-php-sftp repository overview

https://hub.docker.com/r/punkrock/apache-php-sftp/ https://hub.docker.com/r/punkrock/apache-php-sftp/ https://hub.docker.com/r/punkrock/apache-php-sftp/ https://hub.docker.com/r/punkrock/apache-php-sftp/

⁠Using this image

⁠Running the container

Start the container :

docker run -d --name=apache-php-sftp -p 80:80 -p 2222:22 -e SFTP_USER=ubuntu punkrock/apache-php-sftp:latest

Or with Docker Compose with persistent data :

services:
  apache-php-sftp:
    container_name: apache-php-sftp
    image: punkrock/apache-php-sftp:latest
    restart: always
    environment:
      SFTP_USER: ${SFTP_USER}
    volumes:
      - sftp_private_key:/home/${SFTP_USER}/.ssh
      - apache_config:/etc/apache2
      - php_config:/etc/php/8.1/apache2
      - apache_data:/var/www/html
    ports:
      - "80:80"
      - "2222:22"

volumes:
  sftp_private_key:
  apache_config:
  php_config:
  apache_data:

 

⁠Environment Variables

This image uses several environment variables to automatically configure certain parts of the server. They may significantly aid you in using this image.

⁠SFTP_USER

Automatically enable the built-in SFTP server and creates a default user. The default user has no password and only accept connections by private key. Private key is generated in /home/$SFTP_USER/.ssh/ folder

⁠SFTP_UID

The user ID of your SFTP user. Default 1000 if not defined

⁠SFTP_GID

The group ID of your SFTP user. Default 1000 if not defined

Tag summary

Content type

Image

Digest

sha256:5e4ab5730…

Size

98.3 MB

Last updated

about 3 years ago

docker pull punkrock/apache-php-sftp