Work towards custom CSS in volume

This commit is contained in:
3wc 2024-11-18 15:59:07 -05:00
parent 47793df102
commit 98a5d4b726
3 changed files with 27 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export HEDGEDOC_CONFIG_VERSION=v2
export MONITORING_CONFIG_VERSION=v3
export DB_ENTRYPOINT_VERSION=v1
export PG_BACKUP_VERSION=v2
export ENTRYPOINT_CSS_VERSION=v1
customize() {
if [ -z "$1" ]

21
compose.css-volume.yml Normal file
View File

@ -0,0 +1,21 @@
---
version: "3.8"
services:
app:
user: root
volumes:
- "custom_css:/css"
entrypoint: /docker-entrypoint.sh
configs:
- source: entrypoint_css
target: /docker-entrypoint.sh
mode: 0555
volumes:
custom_css:
configs:
entrypoint_css:
name: ${STACK_NAME}_entrypoint_css_${ENTRYPOINT_CSS_VERSION}
file: entrypoint-css-volume.sh

5
entrypoint-css-volume.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
cp -f /css/custom.css /web/dist/
su $(id -un 1000) -s /bin/bash -c 'dumb-init -- ak server'