mariadb: update and pin to 11.4.5, add healthcheck, change root password
mariadb: change root password
This commit is contained in:
+14
-1
@@ -2,6 +2,8 @@
|
|||||||
secrets:
|
secrets:
|
||||||
gitea_runner_token:
|
gitea_runner_token:
|
||||||
file: secrets/gitea_runner_token.txt
|
file: secrets/gitea_runner_token.txt
|
||||||
|
mariadb_root_password:
|
||||||
|
file: secrets/mariadb_root_password
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
caddyfile:
|
caddyfile:
|
||||||
@@ -498,18 +500,29 @@ services:
|
|||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
container_name: mariadb
|
container_name: mariadb
|
||||||
image: linuxserver/mariadb
|
image: linuxserver/mariadb:11.4.5
|
||||||
networks:
|
networks:
|
||||||
public:
|
public:
|
||||||
ipv4_address: 192.168.240.23
|
ipv4_address: 192.168.240.23
|
||||||
ports:
|
ports:
|
||||||
- "${MARIADB_EXTERNAL_PORT}:${MARIADB_INTERNAL_PORT}"
|
- "${MARIADB_EXTERNAL_PORT}:${MARIADB_INTERNAL_PORT}"
|
||||||
|
secrets:
|
||||||
|
- mariadb_root_password
|
||||||
environment:
|
environment:
|
||||||
- MARIADB_AUTO_UPGRADE=true
|
- MARIADB_AUTO_UPGRADE=true
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
- TZ=${TZ}
|
||||||
|
- FILE__MYSQL_ROOT_PASSWORD=/run/secrets/mariadb_root_password
|
||||||
volumes:
|
volumes:
|
||||||
- "${DOCKER_STORAGE_PATH}/mariadb:/config"
|
- "${DOCKER_STORAGE_PATH}/mariadb:/config"
|
||||||
- sockets:/run/mysqld/
|
- sockets:/run/mysqld/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
baserow:
|
baserow:
|
||||||
container_name: baserow
|
container_name: baserow
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user