docker compose to start a local piwigo instance for testing purpose
Go to file
2023-08-26 22:39:46 +02:00
.idea adds datagrip configs 2022-09-23 23:03:12 +02:00
.gitignore adds git ignore to skip gallery files 2022-09-23 23:03:22 +02:00
docker-compose.yml makes localhost work on windows 2023-08-26 22:39:46 +02:00
LICENSE Initial commit 2022-09-23 22:05:11 +02:00
README.md adds more details to setup / configure and compose handling 2022-09-23 23:21:36 +02:00

piwigodocker

Docker compose to start a piwigo environment to quickli test some things on local docker setup.

Setup piwigo

To start a working piwigo gallery run the following commands:

git clone https://git.haefelfinger.net/piwigo/piwigodocker.git
cd piwigodocker
docker-compose up -d

All files gets created within the cloned directory and can be accessed easily from the host machine.

Beware that the mariadb is exposed to localhost on port 3306 and is accessible from tools like mysql workbench or jetbrains datagrip. If you do not like this, remove the ports from the compose file.

After everything started successful, you just enter https://localhost:8080 into your browser. Complete the setup by entering db as database host with user piwigo and password Asdfqwer1234 and piwigo as database. Choose your admin account and finish the setup.

Stop piwigo

To stop the setup:

cd piwigodocker
docker-compose down

Stopping will remove the network and the containers but will keep the data in the folders below piwigodocker.

Start piwigo again

To start the installation again, you just execute the up command again. As all directories still exists, you'll find your installation where you left it.

cd piwigodocker
docker-compose down

Access adminer

To access a little gui for mariadb / mysql, just open a browser and enter https://localhost:8081. The database credentials are the same used for the piwigo setup.