Add fixup script to work around fluffychat docker image weirdness

This commit is contained in:
Cassowary 2022-11-30 16:25:04 -08:00
parent 13acc181e3
commit 746ce6d93b
3 changed files with 16 additions and 2 deletions

View File

@ -1,2 +1,2 @@
export CONFIG_JSON_VERSION=v1
export FIXUP_SH_VERSION=v1

View File

@ -5,13 +5,17 @@ services:
app:
image: git.coopcloud.tech/coop-cloud/fluffychat:v1.7.1
environment:
- DOMAIN
- FLUFFY_APPLICATION_NAME
- FLUFFY_DEFAULT_HOMESERVER
networks:
- proxy
configs:
- source: config_json
target: /usr/share/nginx/config.json
target: /usr/share/nginx/html/config.json
- source: fixup_sh
target: /docker-entrypoint.d/00-fixup.sh
mode: 0555
deploy:
restart_policy:
condition: on-failure
@ -42,3 +46,7 @@ configs:
name: ${STACK_NAME}_config_json_${CONFIG_JSON_VERSION}
file: config.json.tmpl
template_driver: golang
fixup_sh:
name: ${STACK_NAME}_fixup_sh_${FIXUP_SH_VERSION}
file: fixup.sh

6
fixup.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# Do fixups to the deploy to make up for minor weirdnesses in the FluffyChat image.
if [ ! -e /usr/share/nginx/html/ ]; then
ln -s /usr/share/nginx/html/ /usr/share/nginx/html/web
fi