Based on Ubuntu Server 22.04 LTS contains Apache 2.4.52, PHP 8.1.2 and an embedded SFTP server
1.1K
Dockerfile linksStart 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:
This image uses several environment variables to automatically configure certain parts of the server. They may significantly aid you in using this image.
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
The user ID of your SFTP user. Default 1000 if not defined
The group ID of your SFTP user. Default 1000 if not defined
Content type
Image
Digest
sha256:5e4ab5730…
Size
98.3 MB
Last updated
about 3 years ago
docker pull punkrock/apache-php-sftp