Announcement

#1 2023-04-11 14:39:58

zodac
Member
2023-04-11
1

Is anyone using piwigo-videojs in Docker?

Hello all,

I previously tried to set up Piwigo 13.0.0 in Docker, and managed to get photos and albums working fine, but had problems configuring piwigo-videojs. I gave up for a bit, but I'm going to try again with the latest Piwigo and see if I can have some more success.

To save me some time/going down the wrong path, would anyone have a Dockerfile showing how they install Piwigo with piwigo-videojs? I would appreciate a Dockerfile that I could use as a starting point. :)

Thanks!

Last edited by zodac (2023-04-14 00:20:19)

Offline

 

#2 2023-04-26 00:58:49

rajathooja
Member
2023-04-26
4

Re: Is anyone using piwigo-videojs in Docker?

Hey how's it going.

I'm running Piwigo in Docker with videojs plugin installed. I didn't use a Dockerfile, however. I run Piwigo using Docker Compose.

Inside of Piwigo administrator web interface, two plugins need to be activated / installed. Activate the LocalFiles Editor and install and activate the VideoJS plugin from the public Piwigo "Add a new plugin" repo.

Use LocalFiles Editor to edit your settings -- click the "Settings" button on the plugin card.

I added this to the end of the settings file with LocalFiles Editor:

// videojs config
$conf['upload_form_all_types'] = true;
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. ]+$/';
$conf['show_exif'] = true;
$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'DateTimeOriginal',
  'FNumber',
  'ISOSpeedRatings',
  'bitrate',
  'date_creation',
  'display_aspect_ratio',
  'duration',
  'filesize',
  'format',
  'formatprofile',
  'frame_rate',
  'latitude',
  'longitude',
  'make',
  'model',
  'playtime_seconds',
  'sampling_rate',
  'type',
  'resolution',
  'rotation',
  );



Here's my simple docker-compose.yaml file:


version: '3'

services:
  db:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: piwigo_db
    restart: unless-stopped
    environment:
      - PUID=1002
      - PGID=1002
      - TZ=America/Bogota
      - MYSQL_ROOT_PASSWORD=XXXXXXXXXXXXX
      - MYSQL_DATABASE=piwigo
      - MYSQL_USER=piwigo
      - MYSQL_PASSWORD=ZZZZZZZZZZZZZ
    volumes:
      - ./data/db:/config

  piwigo:
    image: lscr.io/linuxserver/piwigo:latest
    container_name: piwigo_web
    restart: unless-stopped
    depends_on:
      - db
    environment:
      - PUID=1002
      - PGID=1002
      - TZ=America/New_York
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./data/media:/gallery
      - ./data/config:/config



From the Piwigo web interface, I then installed the Bootstrap Darkroom theme (Configuration --> Themes) and deactivated the default theme as well as the Smart Pocket theme... The default themes do not appear to work well with videos.

I don't recall having to do anything else. Let me know if it works.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact