Skip to content

Commit

Permalink
[Feat] Added Redis service to Docker Compose configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed Sep 23, 2024
1 parent f2523d2 commit a158e08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Empty file.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ services:
ports:
- "2181:2181"

redis:
image: redis:latest
ports:
- "6379:6379"

application:
image: 654654421569.dkr.ecr.ap-northeast-2.amazonaws.com/waggle/prod:latest
ports:
- "8080:8080"
depends_on:
- kafka
- redis
env_file:
- .env

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ spring:
type: redis

redis:
host: ${REDIS_HOST_NAME}
port: ${REDIS_PORT}
host: redis
port: 6379

server:
error:
Expand Down

0 comments on commit a158e08

Please sign in to comment.