generated from coop-cloud/example
fix: move data to /data
This commit is contained in:
@ -9,6 +9,7 @@ FEDERATION=true
|
||||
LOCAL_TIMELINE=false
|
||||
OPEN_DELETION=false
|
||||
OPEN_REGISTRATION=true
|
||||
# This settings requires authentication to read posts
|
||||
PRIVATE=true
|
||||
PUBLIC_STATS=true
|
||||
SITE_DESCRIPTION=
|
||||
|
@ -21,7 +21,8 @@
|
||||
2. Deploy `coop-cloud/traefik`
|
||||
3. `abra app new writefreely`
|
||||
4. `abra app config <domain>` - be sure to change `<domain>` to something that resolves to
|
||||
your Docker swarm box
|
||||
your coop-cloud server.
|
||||
- For more info about the config options, see the [writefreely docs](https://writefreely.org/docs/main/admin/config).
|
||||
5. `abra app deploy <domain>`
|
||||
6. Once it's running, if you are not using SSO, set up a local admin user by running this command:
|
||||
|
||||
|
@ -18,13 +18,13 @@ services:
|
||||
- SITE_THEME
|
||||
configs:
|
||||
- source: config_ini
|
||||
target: /go/config.ini
|
||||
target: /data/config.ini
|
||||
- source: writefreely_entrypoint
|
||||
target: /abra-entrypoint.sh
|
||||
mode: 0555
|
||||
entrypoint: /abra-entrypoint.sh
|
||||
volumes:
|
||||
- "web-keys:/go/keys"
|
||||
- "local-data:/data"
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
@ -44,7 +44,7 @@ services:
|
||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+latest"
|
||||
|
||||
volumes:
|
||||
web-keys:
|
||||
local-data:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
@ -1,5 +1,11 @@
|
||||
#!/bin/sh
|
||||
/go/cmd/writefreely/writefreely --gen-keys > /dev/null
|
||||
/go/cmd/writefreely/writefreely db init > /dev/null
|
||||
/go/cmd/writefreely/writefreely db migrate > /dev/null
|
||||
set -e
|
||||
|
||||
if [ ! -f /data/abra_first_time_setup ]; then
|
||||
echo "Running first-time setup"
|
||||
/go/cmd/writefreely/writefreely --gen-keys
|
||||
/go/cmd/writefreely/writefreely db init
|
||||
touch /data/abra_first_time_setup
|
||||
fi
|
||||
/go/cmd/writefreely/writefreely db migrate
|
||||
exec /go/cmd/writefreely/writefreely
|
||||
|
Reference in New Issue
Block a user