Skip to content

Commit

Permalink
[DDING-000] 도커 mysql 볼륨 명시적 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjunYou committed Nov 16, 2024
1 parent ddfbf8b commit 382d896
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: '3.8'
services:
spring:
image: public.ecr.aws/${DEV_ECR_REGISTRY_ALIAS}/dev-ecr:${VERSION:-latest}
volumes:
- mysql-volume:/var/lib/mysql
environment:
- VERSION=${VERSION:-latest}
- SPRING_PROFILES_ACTIVE=dev
Expand All @@ -14,6 +12,7 @@ services:
- mysql
ports:
- "8080:8080"

mysql:
image: mysql:8.0.40
environment:
Expand All @@ -22,6 +21,8 @@ services:
TZ: Asia/Seoul
ports:
- "3306:3306"
volumes:
- mysql-volume:/var/lib/mysql

volumes:
mysql-volume:

0 comments on commit 382d896

Please sign in to comment.