Giter VIP home page Giter VIP logo

docker-chevereto's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

DEPRECATION NOTICE

This image is deprecated. We will not offer support for this image and it will not be updated. We recommend alternative images such as: https://github.com/linuxserver/docker-pixapop/ https://github.com/linuxserver/docker-piwigo/ https://github.com/linuxserver/docker-photoshow/

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

Chevereto is an image hosting software that allows you to create a beautiful and full-featured image hosting website on your own server. It's your hosting and your rules, so say goodbye to closures and restrictions.

chevereto

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/chevereto:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf arm32v7-<version tag>

Application Setup

Chevereto-Free now has a maintainer!

Chevereto-Free will be EOL on 2021-12-31 and no new releases will be produced for it. Our container will continue to be updated until at least that date but we cannot make any assurances beyond it.

Access the WebUI at :443. For more information, check out Chevereto Free.

Chevereto requires a MariaDB database, we have an image available here if you require it.

If you are putting Chevereto behind a reverse proxy and need the Real IP to be passed through, edit /config/nginx/site-confs/default, and set set_real_ip_from to match the IP address/address block of your proxy server(s).

Usage

Here are some example snippets to help you get started creating a container.

docker-compose (recommended, click here for more info)

---
version: "2"
services:
  chevereto:
    image: lscr.io/linuxserver/chevereto
    container_name: chevereto
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
    volumes:
      - /path/to/config:/config
      - /path/to/data:/data
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped
    depends_on:
      - chevereto-db

  chevereto-db:
    image: lscr.io/linuxserver/mariadb
    container_name: chevereto-db
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/London
      - MYSQL_ROOT_PASSWORD=<yourrootpass>
      - MYSQL_DATABASE=chevereto
      - MYSQL_USER=chevereto
      - MYSQL_PASSWORD=<yourdbpass>
    volumes:
      - /path/to/config:/config
    restart: unless-stopped
docker run -d \
  --name=chevereto \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=<TZ> \
  -p 80:80 \
  -p 443:443 \
  -v <path to config on host>:/config \
  -v <path to data on host>:/data \
  --restart unless-stopped \
  lscr.io/linuxserver/chevereto:latest

Parameters

Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 80 http gui
-p 443 https gui
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=<TZ> Timezone (i.e., America/New_York)
-v /config config directory volume mapping
-v /data data directory volume mapping

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__PASSWORD=/run/secrets/mysecretpassword

Will set the environment variable PASSWORD based on the contents of the /run/secrets/mysecretpassword file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running: docker exec -it chevereto /bin/bash
  • To monitor the logs of the container in realtime: docker logs -f chevereto
  • container version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' chevereto
  • image version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/chevereto:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update all images: docker-compose pull
    • or update a single image: docker-compose pull chevereto
  • Let compose update all containers as necessary: docker-compose up -d
    • or update a single container: docker-compose up -d chevereto
  • You can also remove the old dangling images: docker image prune

Via Docker Run

  • Update the image: docker pull lscr.io/linuxserver/chevereto:latest
  • Stop the running container: docker stop chevereto
  • Delete the container: docker rm chevereto
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)
  • You can also remove the old dangling images: docker image prune

Via Watchtower auto-updater (only use if you don't remember the original parameters)

  • Pull the latest image at its tag and replace it with the same env variables in one run:

    docker run --rm \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --run-once chevereto
  • You can also remove the old dangling images: docker image prune

Note: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.

Image Update Notifications - Diun (Docker Image Update Notifier)

  • We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-chevereto.git
cd docker-chevereto
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/chevereto:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 13.06.22: - Deprecate.
  • 13.11.21: - Add composer to fix missing dependencies.
  • 21.10.21: - Removed deprecation warning, change reposiory links.
  • 22.07.21: - Rebase to Alpine 3.14.
  • 28.08.20: - Initial Release.

docker-chevereto's People

Contributors

alex-phillips avatar aptalca avatar j0nnymoe avatar roxedus avatar thelamer avatar thespad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-chevereto's Issues

Cant upgrade to paid build.

There is a glitch in this build. I cant use it to upgrade to the paid build. The nmtan/chevereto does work though.

Problem: Cant use this build to upgrade to paid license.

Cannot upload images

linuxserver.io


Expected Behavior

No error when uploading images

Current Behavior

When I upload images, I get a red cross on the uploaded pictures with this error message: "Something went wrong: ⚠ errorId #ec7ef5d7f8e14849". I've checked that /data has the correct permissions (1000:1000).

Steps to Reproduce

  1. Simply upload picture. I'm using persistent storage for /data, /config and /app/chevereto

Environment

OS: Rocky Linux 8.6
CPU architecture: x86_64
How docker service was installed: Official Docker repository

Command used to create docker container (run/create/compose/screenshot)

docker run --name "chevereto" --volume "/data/chevereto/config:/config" --volume "/data/chevereto/app:/app/chevereto" --volume "/data/chevereto/data:/data" --restart "unless-stopped" --env "PUID=1000" --env "PGID=1000" --env "TZ=Europe/Paris" --detach "docker.io/linuxserver/chevereto:latest"

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 02-tamper-check: executing...
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing...
User uid: 1000
User gid: 1000
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 50-config: executing...
[cont-init.d] 50-config: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

502 bad gateway / 500 internal server error since 1.4.2 and later

linuxserver.io


Expected Behavior

Website should load correctly

Current Behavior

Got alternatively 502/500 errors.

Context

I'm using Chevereto for a year actually. It runs behind SWAG with Authelia and fail2ban.
It behaves normally until version 1.4.1. Since 1.4.2 and later (I tried 1.5.1 yesterday), I can't connect anymore.

Steps to Reproduce

  1. Setup Chevereto through docker-compose.
  2. Can't access website

Environment

OS: Debian 11
CPU architecture: x86_64
How docker service was installed: Official repo, docker-compose layer.

Command used to create docker container (run/create/compose/screenshot)

Docker-compose file :

version: '2.1'
services:

   chevereto:
      image: ghcr.io/linuxserver/chevereto
      container_name: chevereto
      networks:
         - net-db
         - net-proxy
      environment:
         - PUID=1001
         - PGID=1001
         - TZ=Europe/Brussels
      volumes:
         - /opt/chevereto/config:/config
         - /opt/chevereto/data:/data
      labels:
         - "com.centurylinklabs.watchtower.enable=true"
      restart: unless-stopped

networks:

   net-proxy:
      external: true

   net-db:
      external: true

Chevereto subdomain configuration file :

## Version 2021/06/28
# make sure that your dns has a cname set for chevereto and that your chevereto container is not using a base url

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name chevereto.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth, fill in ldap details in ldap.conf
    #include /config/nginx/ldap.conf;

    # enable GeoIP bloking
    #include /config/nginx/geoip2_frbe.conf;

    # enable for Authelia
    include /config/nginx/authelia-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable the next two lines for ldap auth
        #auth_request /auth;
        #error_page 401 =200 /ldaplogin;

        # enable for Authelia
        include /config/nginx/authelia-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app chevereto;
        set $upstream_port 80;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    }
}

Docker logs

Docker logs don't return anything useful, but here is my SWAG's Nginx error log when I try to reach the website :

[error] 534#534: *403 connect() failed (111: Connection refused) while connecting to upstream, client: 81.241.xxx.xxx, server: chevereto.*, request: "GET /content/images/system/default/favicon.png HTTP/2.0", upstream: "http://[fd00:abcd:ef00:18::8]:80/content/images/system/default/favicon.png", host: "chevereto.xxx.ovh", referrer: "https://chevereto.xxx.ovh/"

Paid version

Is there possibility to add tag of paid version?
Does anyone know how to add paid version to this?

Change "Chevereto" references to "Chevereto-Free"

Hi,

I'm the author of Chevereto software. I've created "Chevereto" and "Chevereto-Free".

The repository here is for Chevereto-Free, which is not the same as Chevereto and by referring to it as "Chevereto" is misleading users.

  • I hereby request to rename this repository to include the full software name, which is chevereto-free.

Also, all links to "Chevereto" in readme and docs points to Chevereto-Free, but you used the name of the paid software.

  • I hereby request to use "Chevereto-Free" when linking to github.

Regards,
Rodolfo Berrios.

Composer dependencies PHP 7.4.0 (1.4.0 release)

linuxserver.io


Expected Behavior

Chevereto running fine

Current Behavior

Since 1.4.0, instead of landing on the main page, I got the following page with this message :
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".

Steps to Reproduce

  1. Upgrade Chevereto to 1.4.0
  2. Error page
  3. Downgrade to 1.3.0
  4. Running fine

Environment

OS: Linux 4.19.0-17-cloud-amd64 SMP Debian 4.19.194-2 (2021-06-21)
CPU architecture: x86_64 GNU/Linux
How docker service was installed: from the official docker repo

Command used to create docker container (run/create/compose/screenshot)

My docker-compose file :

version: '2.1'
services:

   chevereto:
      image: linuxserver/chevereto
      container_name: chevereto
      networks:
         - net-db
         - net-proxy
      environment:
         - PUID=1001
         - PGID=1001
         - TZ=Europe/Brussels
      volumes:
         - /opt/chevereto/config:/config
         - /opt/chevereto/data:/data
      labels:
#         - "diun.enable=true"
         - "com.centurylinklabs.watchtower.enable=true"
      restart: unless-stopped

networks:

   net-proxy:
      external: true

   net-db:
      external: true

Docker logs

Nothing in docker stdout logs, but this in nginx error.log :
2021/07/19 10:28:26 [error] 364#364: *45 FastCGI sent in stderr: "PHP message: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.29. in /app/chevereto/app/vendor/composer/platform_check.php on line 24" while reading response header from upstream, client: 172.18.0.5, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "chevereto.ndd.tld"

Update Documentation

linuxserver.io


Desired Behavior

Using the docker-compose example should result in a working container and image.

Current Behavior

Does not work due to no database included in the current docker-compose example.

Alternatives Considered

Used LSIO mariadb and the setup I provided in the pull request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.