mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 17:35:08 +01:00
Replace docker-compose healthchecks with wait command (#37)
This commit is contained in:
parent
ee3162c34c
commit
c5afa36962
3 changed files with 11 additions and 8 deletions
|
|
@ -5,19 +5,16 @@ services:
|
|||
context: .
|
||||
target: build
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
- mysql
|
||||
- postgres
|
||||
environment:
|
||||
MYSQL_URL: mysql://root:root@mysql/dbmate
|
||||
POSTGRESQL_URL: postgres://postgres:postgres@postgres/dbmate?sslmode=disable
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "status", "-proot"]
|
||||
|
||||
postgres:
|
||||
image: postgres:9.6
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue