Skip to content

Commit

Permalink
Update compose files to support special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Feb 1, 2024
1 parent 1bf116c commit 4e9ecc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
expose:
- 6379
healthcheck:
test: redis-cli -a ${REDIS_PASSWORD} ping | grep PONG
test: redis-cli -a $$REDIS_PASSWORD ping | grep PONG
interval: 5s
timeout: 5s
retries: 20
Expand All @@ -33,7 +33,7 @@ services:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: mysqladmin ping -u${DB_USERNAME} -p${DB_PASSWORD}
test: mysqladmin ping -u$$MYSQL_USER -p$$MYSQL_PASSWORD
interval: 5s
timeout: 5s
retries: 20
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ services:
command: redis-server --save 60 1 --loglevel notice --requirepass '${REDIS_PASSWORD}'
ports:
- 6379:6379
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
healthcheck:
test: redis-cli -a ${REDIS_PASSWORD} ping | grep PONG
test: redis-cli -a $$REDIS_PASSWORD ping | grep PONG
interval: 5s
timeout: 5s
retries: 20
Expand All @@ -86,7 +88,7 @@ services:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: mysqladmin ping -u${DB_USERNAME} -p${DB_PASSWORD}
test: mysqladmin ping -u$$MYSQL_USER -p$$MYSQL_PASSWORD
interval: 5s
timeout: 5s
retries: 20
retries: 20

0 comments on commit 4e9ecc5

Please sign in to comment.