Skip to content

Commit

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

redis-service:
container_name: redis-container
host : redis-container # docker 에서 이 이름으로 reids 와 연결
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ spring:

data:
redis:
host: ${REDIS_HOST}
port: 6379
command: ["redis-server", "--bind", ${REDIS_HOST}, "--port", "6379"]

spring-doc:
swagger-ui:
Expand Down

0 comments on commit f9bf1b2

Please sign in to comment.