Just a quick image host in PHP
html | ||
docker-compose.yml | ||
LICENSE | ||
README.md |
mini-image-host
Just a quick image host in PHP
Installation
Method 1 (tradional method):
- Install PHP 8.x as well as Apache/Nginx/Lighttpd and set php to work with it.
- Copy the contents of the
html
folder to your webroot, default:/var/www/html/
- Access it over http/https
Method 2 (docker method):
- Clone the repo into your prefered folder
- Change to the html directory:
cd mini-image-host/html
- Get the full path to the html directory:
pwd
- Change back to the repo's home directory:
cd ..
- Edit the
docker-compose.yml
file and replace/home/somik/mini-image-host/html
with the full path to your html directory you got in step 3:nano docker-compose.yml
- You can also change the default port from
8080
to your prefered port. - Save and exit:
Ctrl + x
- Start the docker container:
docker compose up -d
- Access the website by going to
yourServerIp:port
(default port8080
)