Public | Automated Build

Last pushed: 6 days ago
Short Description
Short description is empty for this repo.
Full Description

#Piwigo-Docker

This is an image for piwigo, linked with a mysql database.
Data must be stored on a volume.

Edit this docker-compose.yml and launch with the command $ docker-compose up -d

mysqlpiwigo:
   image: mysql:5.5 
   volumes:
      - /home/piwigo/mysql/:/var/lib/mysql 
   environment:
      - MYSQL_ROOT_PASSWORD=MYROOTPASSWORD
      - MYSQL_DATABASE=piwigo
      - MYSQL_USER=piwigo
      - MYSQL_PASSWORD=MYUSERPASSWORD
piwigo:
   image: mathieuruellan/piwigo
   links:
      - mysqlpiwigo:mysql 
   volumes:
      - /home/piwigo/data/galleries:/var/www/galleries
      - /home/piwigo/data/local:/var/www/local
      - /home/piwigo/data/plugins:/var/www/plugins
      - /home/piwigo/data/themes:/var/www/themes
      - /home/piwigo/cache:/var/www/_data/i
      - /home/piwigo/upload:/var/www/upload"
      - /var/log
      - /var/log/piwigo:/var/log/apache2
   ports:
      - "MYPORT:80"
   hostname: piwigo
   domainname: MYDOMAIN.COM

After db initialization (first launch), environment variables can me removed.

Docker Pull Command
Owner
mathieuruellan
Source Repository

Comments (13)
mathieuruellan
5 months ago

update to 2.9.0

dsteinkopf
5 months ago

Just created an updated clone (https://hub.docker.com/r/dsteinkopf/piwigo/) as this got no updates in the last months.

mathieuruellan
2 years ago

@ugoertz you're right. In my own config, i put a volume on upload directory.
I will update the fig.yml.
Thank you.

ugoertz
2 years ago

Thanks for the image. Shouldn't the uploads directory also be exposed as a volume?

hamiltont
3 years ago

Great! You can also run docker tag 8c240686a9ba mathieuruellan/piwigo:2.7.3 before you push to avoid the confusion in the future

mathieuruellan
3 years ago

It will fix the GHOST bug as well. The libc has no be updated.

mathieuruellan
3 years ago

Thanks Hamilton!
The SVN trunk still have the 2.7.0 value, The hook could be on the 2.7 branch, but that is not really clean.
For the moment i will put a commit to update.

hamiltont
3 years ago

Quick head's up - the build from 2014-12-31 07:17:29 is version 2.7.2. The latest is 2.7.3. Unfortunately I don't think piwigo has version-specific downloads, so the Dockerfile has to rely on the "latest" URL which obviously changes based upon when the last image build was.

To check the version, you can look at the contents of piwigo/include/constants.php

braintwister
3 years ago

Yes, I using fig. After starting from scratch, the installation was successful. Thank you very much!

mathieuruellan
3 years ago

Are you using fig?

I just did a test on my job desk (new machine, so from scratch), and it works.
Replace MYPORT, remove volumues.
Delete your prevous mysql db , relaunch.
set host: mysql, login; piwigo, database: piwigo and password: MYUSERPASSWORD