generated from coop-cloud/example
fix: explicitly set path to assets
This commit is contained in:
@ -23,8 +23,11 @@ MAX_BLOGS="10"
|
|||||||
# Set to true if using keycloak
|
# Set to true if using keycloak
|
||||||
DISABLE_PASSWORD_AUTH=false
|
DISABLE_PASSWORD_AUTH=false
|
||||||
|
|
||||||
#This is here so later lines can extend it; you likely don't wanna edit
|
# This is here so later lines can extend it; you likely don't wanna edit
|
||||||
COMPOSE_FILE="compose.yml"
|
COMPOSE_FILE="compose.yml"
|
||||||
|
# You also likely don't wanna edit these paths
|
||||||
|
ASSETS_PATH=/usr/share/writefreely
|
||||||
|
DATA_PATH=/data
|
||||||
|
|
||||||
## Domain aliases
|
## Domain aliases
|
||||||
#EXTRA_DOMAINS=', `www.writefreely.example.com`'
|
#EXTRA_DOMAINS=', `www.writefreely.example.com`'
|
||||||
|
@ -19,13 +19,13 @@ services:
|
|||||||
configs:
|
configs:
|
||||||
- source: config_ini
|
- source: config_ini
|
||||||
# Can't put the config file in /data or else the volume mounts conflict
|
# Can't put the config file in /data or else the volume mounts conflict
|
||||||
target: /usr/share/writefreely/config.ini
|
target: ${ASSETS_PATH}/config.ini
|
||||||
- source: writefreely_entrypoint
|
- source: writefreely_entrypoint
|
||||||
target: /abra-entrypoint.sh
|
target: /abra-entrypoint.sh
|
||||||
mode: 0555
|
mode: 0555
|
||||||
entrypoint: /abra-entrypoint.sh
|
entrypoint: /abra-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- "local-data:/data"
|
- "local-data:${DATA_PATH}"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
|
@ -5,10 +5,10 @@ bind = 0.0.0.0
|
|||||||
tls_cert_path =
|
tls_cert_path =
|
||||||
tls_key_path =
|
tls_key_path =
|
||||||
autocert = false
|
autocert = false
|
||||||
templates_parent_dir =
|
templates_parent_dir = {{ env "ASSETS_PATH" }}
|
||||||
static_parent_dir =
|
static_parent_dir = {{ env "ASSETS_PATH" }}
|
||||||
pages_parent_dir =
|
pages_parent_dir = {{ env "ASSETS_PATH" }}
|
||||||
keys_parent_dir =
|
keys_parent_dir = {{ env "DATA_PATH" }}
|
||||||
hash_seed =
|
hash_seed =
|
||||||
gopher_port = 0
|
gopher_port = 0
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
# Must match config mout point in compose.yml
|
# Must match config mout point in compose.yml
|
||||||
CONFIG=/usr/share/writefreely/config.ini
|
CONFIG="$ASSETS_PATH/config.ini"
|
||||||
SENTINEL=/data/abra_first_time_setup
|
SENTINEL="$DATA_PATH/abra_first_time_setup"
|
||||||
|
|
||||||
if [ ! -f $SENTINEL ]; then
|
if [ ! -f $SENTINEL ]; then
|
||||||
echo "Running first-time setup"
|
echo "Running first-time setup"
|
||||||
|
Reference in New Issue
Block a user