Fix MySQL health check and use latest tag

This commit is contained in:
Slendy 2023-06-13 22:25:59 -05:00
parent 170e824e96
commit 15a3cbea42
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -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: