mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
Fix MySQL health check and use latest tag
This commit is contained in:
parent
170e824e96
commit
15a3cbea42
1 changed files with 3 additions and 3 deletions
|
@ -68,21 +68,21 @@ services:
|
|||
- "./data:/lighthouse/data:z"
|
||||
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
||||
db:
|
||||
image: mariadb
|
||||
image: mariadb:latest
|
||||
container_name: db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: lighthouse
|
||||
MARIADB_DATABASE: lighthouse
|
||||
healthcheck:
|
||||
test: "/usr/bin/mysql --user=root --password=lighthouse --execute \"SHOW DATABASES;\""
|
||||
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
|
||||
timeout: 10s
|
||||
interval: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
- "database:/var/lib/mysql"
|
||||
redis:
|
||||
image: redis/redis-stack-server
|
||||
image: redis/redis-stack-server:latest
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Reference in a new issue