Compare commits

...

3 Commits

Author SHA1 Message Date
998a6538a4 Merge pull request 'Fix db issues' (#1) from ammar_test into main
Reviewed-on: #1
2024-11-20 15:35:28 +00:00
Ammar Hussein
2375b0eaa6 update readme to avoid failure in app initialization 2024-11-19 13:36:31 -08:00
Ammar Hussein
74883023f3 hardcode db_user rather than using a secret 2024-11-19 12:56:40 -08:00
3 changed files with 4 additions and 8 deletions

View File

@ -7,6 +7,5 @@ DOMAIN=xwiki.example.com
LETS_ENCRYPT_ENV=production
SECRET_DB_USERNAME_VERSION=v1
SECRET_DB_PASSWORD_VERSION=v1
SECRET_DB_ROOT_PASSWORD_VERSION=v1

View File

@ -21,4 +21,6 @@
* `abra app config <app-name>`
* `abra app deploy <app-name>`
> Warning: trying to access <app-name> before db instance finishes initialization results in failure to initialize the xwiki instance, recommended to wait for about 5 minutes (that is plenty of time) before accessing the app from your browser.
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).

View File

@ -4,14 +4,13 @@ services:
app:
image: "xwiki:stable-mysql-tomcat"
environment:
- DB_USER_FILE=/run/secrets/db_username
- DB_USER=xwiki
- DB_PASSWORD_FILE=/run/secrets/db_password
- DB_DATABASE=xwiki
- DB_HOST=${STACK_NAME}_db
volumes:
- xwiki-data:/usr/local/xwiki
secrets:
- db_username
- db_password
networks:
- proxy
@ -44,7 +43,7 @@ services:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
- MYSQL_USER_FILE=/run/secrets/db_username
- MYSQL_USER=xwiki
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
- MYSQL_DATABASE=xwiki
command:
@ -52,7 +51,6 @@ services:
- "--collation-server=utf8mb4_bin"
- "--explicit-defaults-for-timestamp=1"
secrets:
- db_username
- db_password
- db_root_password
@ -66,9 +64,6 @@ volumes:
xwiki-data:
secrets:
db_username:
name: ${STACK_NAME}_db_username_${SECRET_DB_USERNAME_VERSION}
external: true
db_password:
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
external: true