The original (docker hub) version of this container used /var/www/var for the volume. This has been changed to /var/www/html/var in the latest apache containers found on github. Please update your docker bind mounts or if you are using the built in volume you will need to docker cp
the data out of your existing container and into your new container.
A gallery3 container running PHP 7.4. You will have to launch another container with MariaDB 10.
Here is a sample docker-compose.yml. Copy this file to your server and edit the variables if you choose to (in both container configurations):
- MYSQL_ROOT_PASSWORD=myrootpw
- MYSQL_DATABASE=gallery3
- MYSQL_USER=gallery3
- MYSQL_PASSWORD=mygallery3pw
- MYSQL_HOST=mysqlservername
Optional settings for CLI installation:
- DB_PREFIX - set this if you want your tablenames prefixes with a value, e.g. "g3_", defaults to blank
- G3_PASSWORD - set this to a specific admin password, otherwise one will be generated for you
Optional settings for the web server:
- SITE_DOMAIN - set to your domain name if the default doesn't detection work (useful with proxies)
- SITE_PROTOCOL - set the protocol (http or https) if the default detection doesn't work (useful with proxies)
- DEVELOPMENT - set to 1 to enable developer debugging
To increase the maximum file size you can upload you'll need to increase these the memory settings which correspond the PHP settings:
- MEMORY_LIMIT - memory_limit
- UPLOAD_MAX_FILESIZE - upload_max_filesize
- POST_MAX_SIZE - post_max_size
When you start a new gallery installation, in addition to the above, you'll also have to enter the database host which is mysql. Once your settings are ready run docker-compose.
Using docker-compose: docker-compose -p gallery3 up -d
Go to http://yourhostname, enter the values from the settings above and you should be all set.
This will run the installer from the command line and use the variables defined above:
docker container exec -it gallery3_gallery3_1 php installer/index.php
If you didn't define a default admin password note your randomly generated password.
If you have any issues submit them here: https://github.com/bwdutton/gallery3-docker/issues