generated from coop-cloud/example
fix: move data to /data
This commit is contained in:
@ -9,6 +9,7 @@ FEDERATION=true
|
|||||||
LOCAL_TIMELINE=false
|
LOCAL_TIMELINE=false
|
||||||
OPEN_DELETION=false
|
OPEN_DELETION=false
|
||||||
OPEN_REGISTRATION=true
|
OPEN_REGISTRATION=true
|
||||||
|
# This settings requires authentication to read posts
|
||||||
PRIVATE=true
|
PRIVATE=true
|
||||||
PUBLIC_STATS=true
|
PUBLIC_STATS=true
|
||||||
SITE_DESCRIPTION=
|
SITE_DESCRIPTION=
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
2. Deploy `coop-cloud/traefik`
|
2. Deploy `coop-cloud/traefik`
|
||||||
3. `abra app new writefreely`
|
3. `abra app new writefreely`
|
||||||
4. `abra app config <domain>` - be sure to change `<domain>` to something that resolves to
|
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>`
|
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:
|
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
|
- SITE_THEME
|
||||||
configs:
|
configs:
|
||||||
- source: config_ini
|
- source: config_ini
|
||||||
target: /go/config.ini
|
target: /data/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:
|
||||||
- "web-keys:/go/keys"
|
- "local-data:/data"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
@ -44,7 +44,7 @@ services:
|
|||||||
- "coop-cloud.${STACK_NAME}.version=0.1.0+latest"
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+latest"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
web-keys:
|
local-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/go/cmd/writefreely/writefreely --gen-keys > /dev/null
|
set -e
|
||||||
/go/cmd/writefreely/writefreely db init > /dev/null
|
|
||||||
/go/cmd/writefreely/writefreely db migrate > /dev/null
|
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
|
exec /go/cmd/writefreely/writefreely
|
||||||
|
Reference in New Issue
Block a user