Skip to content

Commit f12f9a8

Browse files
author
Iisakki Jaakkola
committed
Update the official docker-compose file too while at it.
1 parent a000d64 commit f12f9a8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docker-compose.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# Compose file for production.
2+
13
volumes:
24
db_data:
35
storage:
46

57
services:
68
app:
7-
image: snipe/snipe-it:${APP_VERSION:-v6.4.1}
8-
restart: always
9+
image: snipe/snipe-it:${APP_VERSION:-v7.0.11}
10+
restart: unless-stopped
911
volumes:
1012
- storage:/var/lib/snipeit
1113
ports:
@@ -18,8 +20,8 @@ services:
1820
- .env
1921

2022
db:
21-
image: mariadb:10.6.4-focal
22-
restart: always
23+
image: mariadb:11.5.2
24+
restart: unless-stopped
2325
volumes:
2426
- db_data:/var/lib/mysql
2527
environment:
@@ -28,7 +30,8 @@ services:
2830
MYSQL_PASSWORD: ${DB_PASSWORD}
2931
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
3032
healthcheck:
31-
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
33+
# https://mariadb.com/kb/en/using-healthcheck-sh/#compose-file-example
34+
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
3235
interval: 5s
3336
timeout: 1s
3437
retries: 5

0 commit comments

Comments
 (0)