Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Dockerfiles for various release of Chevereto Free

Notifications You must be signed in to change notification settings

pminnebach/docker-chevereto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chevereto

pminnebach/chevereto - Chevereto Free Docker

Chevereto is a powerful and fast image hosting script that allows you to create your very own full featured image hosting website in just minutes.

Please note that this offers only the free Chevereto version.

Supported tags and respective Dockerfile links

Environment variables

  • CHEVERETO_DB_HOST - hostname of the Database machine that you wish to connect, default to db
  • CHEVERETO_DB_USERNAME - Username to authenticate to MySQL database, default to chevereto
  • CHEVERETO_DB_PASSWORD - Password of the user when connect to MySQL database, default to chevereto
  • CHEVERETO_DB_NAME - Name of the database in MySQL server, default to chevereto
  • CHEVERETO_DB_PREFIX - Table prefix (use this to run multiple instance of Chevereto using the same Database ), default to chv_

Connection to database

Chevereto requires an Mysql database to store its information. You can use a Mysql or MariaDB container to host this.

Information on connection to database is provided to container via environment variables explained above.

Permanent storage

Chevereto stores images uploaded by users in /var/www/html/images directory within the container.

You can mount a data volume at this location to ensure that you don't lose your images if you relaunch/remove container.

Example Usage

I recommend you to use Docker-compose / Docker swarm to launch Chevereto in conjunction with a MySQL database. A sample of docker-compose.yaml can be found below.

Docker compose

Note: Thanks to backward compatibility of docker-compose, you can change the version to 2 and it will still works.

version: '3'

services:
  db:
    image: mariadb:10.1.22
    volumes:
      - './mariadb:/var/lib/mysql:rw'
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: chevereto_root
      MYSQL_DATABASE: chevereto
      MYSQL_USER: chevereto
      MYSQL_PASSWORD: chevereto

  chevereto:
    depends_on:
      - db
    image: pminnebach/chevereto:1.1.0
    restart: always
    environment:
      CHEVERETO_DB_HOST: db
      CHEVERETO_DB_USERNAME: chevereto
      CHEVERETO_DB_PASSWORD: chevereto
      CHEVERETO_DB_NAME: chevereto
      CHEVERETO_DB_PREFIX: chv_
    volumes:
      - './images:/var/www/html/images:rw'
    ports:
      - 81:80

Once docker-compose.yaml is ready, you can run

docker-compose up

To run the service

Standalone

docker run -it --name chevereto -d \
    --link mysql:mysql \
    -p 80:80 \
    -v "$PWD/images":/var/www/html/images \
    -e "CHEVERETO_DB_HOST=db" \
    -e "CHEVERETO_DB_USERNAME=chevereto" \
    -e "CHEVERETO_DB_PASSWORD=chevereto" \
    -e "CHEVERETO_DB_NAME=chevereto" \
    -e "CHEVERETO_DB_PREFIX=chv_" \
    pminnebach/chevereto:1.1.0

About

Dockerfiles for various release of Chevereto Free

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 79.0%
  • PHP 18.2%
  • Shell 2.8%