mirror of
https://github.com/chevereto/docker.git
synced 2026-05-07 00:06:11 +02:00
dev use mysql
This commit is contained in:
7
dev.yml
7
dev.yml
@@ -1,9 +1,7 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
database:
|
||||
container_name: ${CONTAINER_BASENAME}_database
|
||||
image: mariadb:jammy
|
||||
image: mysql
|
||||
networks:
|
||||
- chevereto
|
||||
volumes:
|
||||
@@ -12,7 +10,8 @@ services:
|
||||
- ${DB_PORT}:3306
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"]
|
||||
# test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect"] # MariaDB
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] # MySQL
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user