use naming convetions for services

Closes #9
This commit is contained in:
decentral1se 2022-05-26 12:10:36 +02:00
parent 758d4d6af8
commit 4745b2e836
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
5 changed files with 10 additions and 6 deletions

View File

@ -49,7 +49,7 @@ Avoid the use of quotes (`"..."`) as much as possible, the NodeJS scripts flip o
### Deleting a user (e.g. to fix SSO weirdness)
`abra app cmd YOURAPPNAME postgres delete_user <username-to-delete> <username-to-replace>`
`abra app cmd YOURAPPNAME db delete_user <username-to-delete> <username-to-replace>`
Where `<username-to-delete>` is the username of the user to be removed, and
`<username-to-replace>` is the username of another user, to assign documents and

View File

@ -1,8 +1,8 @@
export APP_ENTRYPOINT_VERSION=v4
export APP_ENTRYPOINT_VERSION=v5
migrate() {
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_postgres:5432/outline"
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_db:5432/outline"
yarn db:migrate --env=production-ssl-disabled
}

View File

@ -49,12 +49,12 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
redis:
cache:
image: redis:6.2.6
networks:
- backend
postgres:
db:
image: postgres:11
networks:
- backend

View File

@ -13,6 +13,6 @@ export GOOGLE_CLIENT_SECRET=$(cat /run/secrets/google_client_secret)
export UTILS_SECRET=$(cat /run/secrets/utils_secret)
export SECRET_KEY=$(cat /run/secrets/secret_key)
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_postgres:5432/outline"
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_db:5432/outline"
/usr/local/bin/yarn start "$@"

View File

@ -19,6 +19,10 @@ users are enjoying using it.
See https://git.coopcloud.tech/coop-cloud/outline#deleting-a-user-e-g-to-fix-sso-weirdness
for more.
- Furthermore, following https://git.coopcloud.tech/coop-cloud/outline/issues/9, you will
need to undeploy your stack and re-deploy as some of the services have been renamed to
maintain naming conventions with other recipes.
There has been a lot of changes. Please add to this file if you see more
weirdness to help the rest of the Co-op Cloud Comrades.