ν™˜κ²½λ³€μˆ˜

ν™˜κ²½λ³€μˆ˜ μœ„μΉ˜

Code

@Value("${REFRESH_TOKEN}")
private String rToken;

@Value("${spring.datasource.hikari.username}")
private String username;
# application.properties
spring.datasource.hikari.jdbc-url=${JDBC_URL:localhost}
spring.datasource.hikari.username=${DB_USER:devuser}
spring.datasource.hikari.password=${DB_PASS:devpass}

Docker env

# docker version 20+
docker run -p 8080:8080 -e DB_USER -e DB_PASS -e JDBC_URL kenu/sb-kenu

# docker version 19+ in AWS EC2
sudo usermod -a -G docker ec2-user
# re login
docker run -e DB_USER=${DB_USER} -e DB_PASS=$DB_PASS -e JDBC_URL=$JDBC_URL -p 8080:8080 kenu/aop-demo

λ™μ˜μƒ

related

What Else?
inflearn react api server -50% 할인쿠폰: 15108-f2af1e086101 buy me a coffee