Skip to content
Snippets Groups Projects
Commit 742c6e27 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Upgrade to MariaDB 11.2 in the documentation/docker-compose since...

[Misc] Upgrade to MariaDB 11.2 in the documentation/docker-compose since that's now our latest supported tag
parent 22798892
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ services:
- bridge
# The container that runs the database (mariadb)
db:
image: "mariadb:11.1"
image: "mariadb:11.2"
container_name: xwiki-mariadb-db
# - Provide a name instead of an auto-generated id for the mariadb data, to make it simpler to identify in
# 'docker volume ls'
......
......@@ -46,7 +46,7 @@ services:
- bridge
# The container that runs the database (mariadb)
db:
image: "mariadb:11.1"
image: "mariadb:11.2"
container_name: xwiki-mariadb-db
# - Provide a name instead of an auto-generated id for the mariadb data, to make it simpler to identify in
# 'docker volume ls'
......
......@@ -46,7 +46,7 @@ services:
- bridge
# The container that runs the database (mariadb)
db:
image: "mariadb:11.1"
image: "mariadb:11.2"
container_name: xwiki-mariadb-db
# - Provide a name instead of an auto-generated id for the mariadb data, to make it simpler to identify in
# 'docker volume ls'
......
......@@ -46,7 +46,7 @@ services:
- bridge
# The container that runs the database (mariadb)
db:
image: "mariadb:11.1"
image: "mariadb:11.2"
container_name: xwiki-mariadb-db
# - Provide a name instead of an auto-generated id for the mariadb data, to make it simpler to identify in
# 'docker volume ls'
......
......@@ -113,12 +113,12 @@ Notes:
#### Starting MariaDB
This is exactly similar to starting MySQL and you should thus follow exactly the same steps as for MySQL. The only thing to change is the docker image for MariaDB: instead of `mysql:<tag>`, use `mariadb:<tag>`. For example: `mariadb:11.1`.
This is exactly similar to starting MySQL and you should thus follow exactly the same steps as for MySQL. The only thing to change is the docker image for MariaDB: instead of `mysql:<tag>`, use `mariadb:<tag>`. For example: `mariadb:11.2`.
Full command example:
```console
docker run --net=xwiki-nw --name mysql-xwiki -v /my/path/mariadb:/var/lib/mysql -v /my/path/mariadb-init:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mariadb:11.1 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --explicit-defaults-for-timestamp=1
docker run --net=xwiki-nw --name mysql-xwiki -v /my/path/mariadb:/var/lib/mysql -v /my/path/mariadb-init:/docker-entrypoint-initdb.d -e MYSQL_ROOT_PASSWORD=xwiki -e MYSQL_USER=xwiki -e MYSQL_PASSWORD=xwiki -e MYSQL_DATABASE=xwiki -d mariadb:11.2 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --explicit-defaults-for-timestamp=1
```
#### Starting PostgreSQL
......@@ -260,7 +260,7 @@ services:
networks:
- bridge
db:
image: "mariadb:11.1"
image: "mariadb:11.2"
container_name: xwiki-mariadb-db
volumes:
- mariadb-data:/var/lib/mysql
......
......@@ -70,7 +70,7 @@ services:
- "--collation-server=utf8mb4_bin"
- "--explicit-defaults-for-timestamp=1"'''
else if (db == 'mariadb') print '''image: "mariadb:11.1"
else if (db == 'mariadb') print '''image: "mariadb:11.2"
container_name: xwiki-mariadb-db
# - Provide a name instead of an auto-generated id for the mariadb data, to make it simpler to identify in
# 'docker volume ls'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.