Nenhuma descrição

Somik 03e93c4bac Create LICENSE 1 ano atrás
html 9c314eff18 Add docker compose file 1 ano atrás
LICENSE 03e93c4bac Create LICENSE 1 ano atrás
README.md 9c12a13c38 Update README.md 1 ano atrás
docker-compose.yml 9c314eff18 Add docker compose file 1 ano atrás

README.md

mini-image-host

Just a quick image host in PHP

Installation

Method 1 (tradional method):

  1. Install PHP 8.x as well as Apache/Nginx/Lighttpd and set php to work with it.
  2. Copy the contents of the html folder to your webroot, default: /var/www/html/
  3. Access it over http/https

Method 2 (docker method):

  1. Clone the repo into your prefered folder
  2. Change to the html directory: cd mini-image-host/html
  3. Get the full path to the html directory: pwd
  4. Change back to the repo's home directory: cd ..
  5. 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
  6. You can also change the default port from 8080 to your prefered port.
  7. Save and exit: Ctrl + x
  8. Start the docker container: docker compose up -d
  9. Access the website by going to yourServerIp:port (default port 8080)