Skip to content

Commit

Permalink
chore: add redis container
Browse files Browse the repository at this point in the history
  • Loading branch information
junha-ahn committed Nov 13, 2023
1 parent e55633a commit f3d28fe
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ services:
networks:
- spring-network

redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379

labels:
- 'name=redis'
- 'mode=standalone'

restart: 'no'
command: redis-server

networks:
- spring-network

api:
container_name: api
build:
Expand All @@ -44,9 +60,16 @@ services:
JWT_ISSUER: minjun
QUEUE_SERVER_URL : http://localhost
SPRING_PROFILES_ACTIVE: local
REDIS_HOST: redis
REDIS_PORT: 6379

depends_on:
db:
condition: service_healthy
redis:
condition: service_started


networks:
- spring-network

Expand Down

0 comments on commit f3d28fe

Please sign in to comment.