Skip to content

Commit

Permalink
bump mariadb version, update healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl committed Feb 20, 2024
1 parent 6501889 commit 4bbf05b
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,31 @@ services:
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wp
WORDPRESS_DB_USER: wp
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: pass
WORDPRESS_SKIP_INSTALL: 'yes'
WORDPRESS_DEBUG: 1
volumes:
- ./:/var/www/html/wp-content/plugins/kadence-blocks
depends_on:
- db
db:
condition: service_healthy

db:
image: mariadb:10.5
image: mariadb:10.7.8
restart: always
healthcheck:
interval: 30s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
timeout: 30s
healthcheck: # The `wp` db should exist.
test: mysqlshow -u root -proot wp
start_period: 5s
interval: 1s
timeout: 3s
retries: 30
ports:
- ${DB_PORT}:3306
environment:
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: pass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
MYSQL_ROOT_PASSWORD: root
tmpfs:
- /var/lib/mysql

0 comments on commit 4bbf05b

Please sign in to comment.