Skip to content

Commit bfb0a7a

Browse files
committed
chore: docker-compose mysql 설정값 환경 변수로 추출
1 parent 8ac1f10 commit bfb0a7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env
12
data.sql
23
application.properties
34
HELP.md

compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ services:
22
mysql:
33
image: 'mysql:latest'
44
environment:
5-
- 'MYSQL_DATABASE=gcm'
6-
- 'MYSQL_ROOT_PASSWORD=verysecret'
7-
- 'MYSQL_USER=nilgil'
8-
- 'MYSQL_PASSWORD=secret'
5+
- MYSQL_DATABASE=${MYSQL_DATABASE}
6+
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
7+
- MYSQL_USER=${MYSQL_USER}
8+
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
99
ports:
1010
- '3306:3306'

0 commit comments

Comments
 (0)