AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Webtrees docker11/3/2022 The Dockerfile-php adds libpng, freetype, libjpeg, libxml2 and unzip to the container. Fastcgi acts as glue between the nginx container and the fpm container communicating over port 9000 on a private Docker network. The php scripts are run from a separate container. Change that to whatever you like in the docker-compose.yml and nf file. The startup starts fcgiwrap and then nginx in non daemon mode. The container is then populated with the webtrees code. The nf is modified to allow image uploads up to 40M as the default is unusable. It receives a customised nf which forwards requests for php scripts to the fcgi container. This container is defined by the Dockerfile (of the same name) and inherits from nginx. The configuration data for the Webtrees app and the media files will reside on the Webtrees-Data volume. The 3 containers will connect with each other over the Docker internal network Webtrees-Net. The docker-compose.yml file declares the 3 containers that are used. If you want to copy the images to a safe place use the docker cp command:ĭocker cp Webtrees_webserver:/var/www/data/media. These files will stay around for as long as the volume stays around. This is mounted to the Webtrees_webserver and Webtrees_php_fpm container. Media files that you upload are kept in the docker volume named Webrtrees-Data. This will create a gedcom file that you can keep as a backup and can later import. To extract the genealogy data you captured in webtrees click on My page > Control panel > Family trees > Manage family trees > GEDCOM file Export > A file on your computer - continue. If you delete this container the data is gone. If you stop and restart this container the data remains. The genealogy data is kept in the MySql database container that was started. # docker stop Webtrees_webserver # docker stop Webtrees_php_fpm # docker stop Webtrees_mysql_db # docker rm Webtrees_webserver # docker rm Webtrees_php_fpm # docker rm Webtrees_mysql_db # docker network rm Webtrees-Net # docker volume rm Webtrees-Data Securing my data: Docker-compose down -rmi all -volumes -remove-orphans
0 Comments
Read More
Leave a Reply. |