Skip to content

Commit

Permalink
Healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 17, 2023
1 parent 104b2a1 commit ded3a35
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ services:
ports:
- '8085:8085'
depends_on:
- planetscale-mysql
planetscale-mysql:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ['CMD', 'nc', '-z', '127.0.0.1', '8085']
Expand All @@ -155,6 +156,10 @@ services:
networks:
- databases
tmpfs: /var/lib/planetscale-mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10

postgres14:
image: postgres:14
Expand Down Expand Up @@ -196,6 +201,10 @@ services:
networks:
- databases
tmpfs: /var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10

mysql-5-7:
image: mysql:5.7.44
Expand All @@ -210,6 +219,10 @@ services:
networks:
- databases
tmpfs: /var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10

mysql-8-0:
image: mysql:8.0.28
Expand All @@ -224,6 +237,10 @@ services:
networks:
- databases
tmpfs: /var/lib/mysql8
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10

mariadb-10-0:
image: mariadb:10
Expand Down

0 comments on commit ded3a35

Please sign in to comment.