Skip to content

Commit

Permalink
Merge pull request #53 from Mile-Writings/feat/#52
Browse files Browse the repository at this point in the history
#52 [feat] docker-compose로 redis를 가져오는 Dockerfile을 작성
  • Loading branch information
sohyundoh authored Jan 10, 2024
2 parents 93f467e + 1ce6427 commit 4063b8e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amd64/amazoncorretto:17
WORKDIR /app
COPY ./module-api/build/libs/module-api-1.0.0-SNAPSHOT.jar /app/MILE.jar
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "-Dspring.profiles.active=dev", "MILE.jar"]
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "-Dspring.profiles.active=dev", "MILE.jar"]
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
redis:
image: redis:latest
container_name: redis
hostname: redis
ports:
- 6379:6379
labels:
- "name=redis"
- "mode=standalone"
extra_hosts:
- host.docker.internal:host-gateway
networks:
- app-tier

0 comments on commit 4063b8e

Please sign in to comment.