Docker implementation of webtrees 2
10K+
From https://github.com/tsunaminoai/docker-webtrees
The web's leading on-line collaborative genealogy application.
http://${SERVER_NAME}The following docker-compose will start two containers: a mariadb container for the database and the webtrees container running Webtrees. The volumes declared ensure that the database and Webtrees content are preserved across container restarts. Specifically, the volumes declared as storing their data in the same directory as the docker-compose.yml file. Finally, the Webtrees instance is being made available on port 8080 of the machine indicated (in this example, the machine hosting this Webtrees install is only available via the 192.168.1.101 IP address).
The SERVER_NAME environment variable is used to set the server name within the running instance. This is necessary due to the way Webtrees performs redirections between pages. If the server name were blank, redirects would fail and Webtrees would be unusable. By explicitly setting the server name, all Webtrees page redirects begin with the SERVER_NAME indicated, followed by the desired page. The URL_BASE operates in the same manner in version 2. This can be specified in the environment variables, but will default to http://${SERVER_NAME}. If using https, this will need to be specified manually.
version: '3'
services:
db:
image: mariadb:10
container_name: webtrees-db
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root_pass_here
- MYSQL_DATABASE=my_database_here
- MYSQL_USER=my_user_here
- MYSQL_PASSWORD=my_pass_here
site:
image: webtrees-docker:latest
container_name: webtrees-site
volumes:
- ./webtrees/data:/var/www/html/data
environment:
- SERVER_NAME=192.168.1.101:8080
- BASE_URL=192.168.1.101:8080
- WEBTREES_DB_HOST=db
- WEBTREES_DB_PORT=3306
- WEBTREES_DB_USER=my_user_here
- WEBTREES_DB_PASS=my_pass_here
- WEBTREES_DB_NAME=my_database_here
- WEBTREES_TBL_PFX=wt_
ports:
- "8080:80"
Once the containers are running, simply visit the IP:PORT or URL of the install and complete the installation steps.
The "Server name" should be db and the "Port number" should be 3306
Content type
Image
Digest
Size
87.6 MB
Last updated
over 4 years ago
docker pull tsunaminoai/docker-webtrees