Skip to content

Commit

Permalink
Improve development environment configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaho12 authored Sep 24, 2023
1 parent d8dd196 commit 5883285
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions localdev/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
version: "3.3"
version: "3.4"
services:
mysqldb:
environment:
- MYSQL_ROOT_PASSWORD=root123
- MYSQL_DATABASE=trinogateway
image: mysql:5.5
image: mysql:5.7
platform: linux/amd64
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
# Need root password to check MySQL server status
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-proot123"]
start_period: 20s
timeout: 5s
retries: 5
Expand All @@ -30,7 +32,8 @@ services:
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready || exit 1"]
# Need user and database name to check PostgreSQL server status
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB || exit 1"]
interval: 10s
timeout: 3s
retries: 3
Expand Down

0 comments on commit 5883285

Please sign in to comment.