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.
1.1.0
- Using the1.1.0
release (1.1.0/Dockerfile)latest
- Using latest cloned source code from orignal repo (latest/Dockerfile)installer
- Using latest installer script (installer/Dockerfile) - Once you start the container with this image, you will have to wait for it to download latest source code from original repo
CHEVERETO_DB_HOST
- hostname of the Database machine that you wish to connect, default todb
CHEVERETO_DB_USERNAME
- Username to authenticate to MySQL database, default tochevereto
CHEVERETO_DB_PASSWORD
- Password of the user when connect to MySQL database, default tochevereto
CHEVERETO_DB_NAME
- Name of the database in MySQL server, default tochevereto
CHEVERETO_DB_PREFIX
- Table prefix (use this to run multiple instance of Chevereto using the same Database ), default tochv_
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.
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.
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.
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
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