feat(service): add Gramps Web template

This commit is contained in:
Halil Özgür 2025-09-08 04:07:54 +03:00
parent 45c75ad9c1
commit 7754f5c769
No known key found for this signature in database
2 changed files with 217 additions and 0 deletions

154
public/svgs/gramps-web.svg Normal file
View file

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg602"
sodipodi:version="0.34"
width="500pt"
height="500pt"
xml:space="preserve"
sodipodi:docname="logo.svg"
version="1.1"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"><metadata
id="metadata90"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs604"><linearGradient
id="linearGradient627"><stop
style="stop-color:#7f7f7f;stop-opacity:1;"
offset="0"
id="stop628" /><stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop629" /></linearGradient><linearGradient
xlink:href="#linearGradient627"
id="linearGradient630" /><radialGradient
xlink:href="#linearGradient627"
id="radialGradient631"
cx="0.4920629"
cy="0.48437563"
r="0.7127381"
fx="0.4920629"
fy="0.48437563" /><radialGradient
xlink:href="#linearGradient627"
id="radialGradient634"
cx="0.5"
cy="0.5"
r="0.5"
fx="0.5"
fy="0.5" /><radialGradient
xlink:href="#linearGradient627"
id="radialGradient637"
cx="0.49542692"
cy="0.53518981"
r="0.55758011"
fx="0.49542692"
fy="0.53518981"
gradientTransform="scale(1.038947,0.962513)"
gradientUnits="objectBoundingBox" /></defs><sodipodi:namedview
id="base"
showgrid="false"
inkscape:zoom="0.73361291"
inkscape:cx="456.94095"
inkscape:cy="277.6002"
inkscape:window-width="1920"
inkscape:window-height="1003"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g1176"
inkscape:snap-bbox="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:bbox-paths="true"
inkscape:object-paths="true"
inkscape:document-rotation="0" /><g
id="g1176"
transform="translate(1.111852,-1.9505107)"><path
inkscape:connector-curvature="0"
id="path1087"
d="m 175.2367,338.27684 h 31.47905 v -153.9548 h 60.76188"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="298.72879"
x="53.249031"
height="77.683617"
width="114.48766"
id="rect1025"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="145.48022"
x="260.97763"
height="77.683617"
width="114.48766"
id="rect1025-3"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="66.233986"
x="496.70627"
height="77.683617"
width="114.48766"
id="rect1025-3-7"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="216.99173"
x="496.70627"
height="77.683617"
width="114.48766"
id="rect1025-3-6-5"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><path
inkscape:connector-curvature="0"
id="path1087-3"
d="m 175.2367,338.27684 h 31.47905 v 153.9548 h 60.76188"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="453.3432"
x="260.97763"
height="77.683617"
width="114.48766"
id="rect1025-3-5"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><path
inkscape:connector-curvature="0"
id="path1087-6"
d="m 389.46529,181.9825 h 36.59813 v -76.10121 h 70.64286"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" /><path
inkscape:connector-curvature="0"
id="path1087-3-2"
d="m 375.46529,181.9825 50.59813,0 v 76.1012 h 70.64286"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
sodipodi:nodetypes="cccc" /><rect
ry="13.418079"
rx="13.418079"
y="375.8923"
x="496.70627"
height="77.683617"
width="114.48766"
id="rect1025-3-7-9"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><rect
ry="13.418079"
rx="13.418079"
y="526.65009"
x="496.70627"
height="77.683617"
width="114.48766"
id="rect1025-3-6-5-1"
style="opacity:1;vector-effect:none;fill:#795649;fill-opacity:1;stroke:#795649;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" /><path
inkscape:connector-curvature="0"
id="path1087-6-2"
d="m 389.46529,491.64082 h 36.59813 v -76.10121 h 70.64286"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" /><path
inkscape:connector-curvature="0"
id="path1087-3-2-7"
d="m 375.46529,491.64082 50.59813,0 v 76.10121 h 70.64286"
style="fill:none;stroke:#795649;stroke-width:30;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:normal"
sodipodi:nodetypes="cccc" /></g></svg>

After

Width:  |  Height:  |  Size: 7.2 KiB

View file

@ -0,0 +1,63 @@
# documentation: https://www.grampsweb.org/install_setup/setup/
# slogan: Open Source Online Genealogy System.
# category: family
# tags: family, genealogy, personal
# logo: svgs/gramps-web.svg
# port: 5000
services:
grampsweb: &grampsweb
image: ghcr.io/gramps-project/grampsweb:latest
environment:
GRAMPSWEB_TREE: ${GRAMPSWEB_TREE:-Gramps Web} # will create a new tree if not exists
GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
GUNICORN_NUM_WORKERS: ${GUNICORN_NUM_WORKERS:-2}
depends_on:
- grampsweb_redis
volumes:
- gramps_users:/app/users # persist user database
- gramps_index:/app/indexdir # persist search index
- gramps_thumb_cache:/app/thumbnail_cache # persist thumbnails
- gramps_cache:/app/cache # persist export and report caches
- gramps_secret:/app/secret # persist flask secret
- gramps_db:/root/.gramps/grampsdb # persist Gramps database
- gramps_media:/app/media # persist media files
- gramps_tmp:/tmp
healthcheck:
test: wget -O - http://localhost:5000 > /dev/null 2>&1
interval: 5s
timeout: 10s
retries: 3
grampsweb_celery:
<<: *grampsweb
container_name: grampsweb_celery
depends_on:
- grampsweb_redis
command: celery -A gramps_webapi.celery worker --loglevel=INFO --concurrency=2
healthcheck:
test: SECRET_KEY="$(cat secret/secret)" celery -A gramps_webapi.celery status || exit 1
interval: 5s
timeout: 10s
retries: 3
grampsweb_redis:
image: docker.io/library/redis:7.2.4-alpine
container_name: grampsweb_redis
healthcheck:
test: redis-cli ping | grep PONG
interval: 5s
timeout: 10s
retries: 3
volumes:
gramps_users:
gramps_index:
gramps_thumb_cache:
gramps_cache:
gramps_secret:
gramps_db:
gramps_media:
gramps_tmp: