generated from coop-cloud/example
fix: create volume for db
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:
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ services:
|
|||||||
entrypoint: /abra-entrypoint.sh
|
entrypoint: /abra-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- "web-keys:/go/keys"
|
- "web-keys:/go/keys"
|
||||||
|
- "local-data:/go/data"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- proxy
|
- proxy
|
||||||
@ -45,6 +46,7 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
web-keys:
|
web-keys:
|
||||||
|
local-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
@ -14,7 +14,7 @@ gopher_port = 0
|
|||||||
|
|
||||||
[database]
|
[database]
|
||||||
type = {{ if eq (env "USE_MARIADB") "true" }}mysql{{ else }}sqlite3{{ end }}
|
type = {{ if eq (env "USE_MARIADB") "true" }}mysql{{ else }}sqlite3{{ end }}
|
||||||
filename = {{ if eq (env "USE_MARIADB") "true" }}{{ else }}writefreely.db{{ end }}
|
filename = {{ if eq (env "USE_MARIADB") "true" }}{{ else }}data/writefreely.db{{ end }}
|
||||||
username = {{ if eq (env "USE_MARIADB") "true" }}writeas{{ else }}{{ end }}
|
username = {{ if eq (env "USE_MARIADB") "true" }}writeas{{ else }}{{ end }}
|
||||||
password = {{ if eq (env "USE_MARIADB") "true" }}{{ secret "db_password" }}{{ else }}{{ end }}
|
password = {{ if eq (env "USE_MARIADB") "true" }}{{ secret "db_password" }}{{ else }}{{ end }}
|
||||||
database = {{ if eq (env "USE_MARIADB") "true" }}writefreely{{ else }}{{ end }}
|
database = {{ if eq (env "USE_MARIADB") "true" }}writefreely{{ else }}{{ end }}
|
||||||
|
@ -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 ./keys/abra_first_time_setup ]; then
|
||||||
|
echo "Running first-time setup"
|
||||||
|
/go/cmd/writefreely/writefreely --gen-keys
|
||||||
|
/go/cmd/writefreely/writefreely db init
|
||||||
|
touch ./keys/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