Skip to content

Commit

Permalink
[fix] docker Unable to connect to Redis 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeesw committed Sep 15, 2024
1 parent 7519120 commit ea41336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:

redis-service:
container_name: redis-container
host : redis-container # docker 에서 이 이름으로 reids 와 연결
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
Expand Down

0 comments on commit ea41336

Please sign in to comment.