This is an image for piwigo, linked with a mysql database.
Data must be stored on a volume.
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.
update to 2.9.0
@ugoertz you're right. In my own config, i put a volume on upload directory.
I will update the fig.yml.
Thanks for the image. Shouldn't the uploads directory also be exposed as a volume?
Great! You can also run
docker tag 8c240686a9ba mathieuruellan/piwigo:2.7.3 before you push to avoid the confusion in the future
It will fix the GHOST bug as well. The libc has no be updated.
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.
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
Yes, I using fig. After starting from scratch, the installation was successful. Thank you very much!
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