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:/lighthouse/data:z"
|
||||||
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
- "./data/.aspnet:/lighthouse/.aspnet:z"
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb:latest
|
||||||
container_name: db
|
container_name: db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: lighthouse
|
MARIADB_ROOT_PASSWORD: lighthouse
|
||||||
MARIADB_DATABASE: lighthouse
|
MARIADB_DATABASE: lighthouse
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "/usr/bin/mysql --user=root --password=lighthouse --execute \"SHOW DATABASES;\""
|
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- "database:/var/lib/mysql"
|
- "database:/var/lib/mysql"
|
||||||
redis:
|
redis:
|
||||||
image: redis/redis-stack-server
|
image: redis/redis-stack-server:latest
|
||||||
container_name: redis
|
container_name: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Add table
Reference in a new issue