Skip to content

Commit

Permalink
[feat] : docker compose volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBean99 committed Sep 2, 2023
1 parent b3ed212 commit 77e6b57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
@Service
public class EmailSenderService {
@Autowired private JavaMailSender javaMailSender;

@Autowired
public EmailSenderService(JavaMailSender javaMailSender) {
this.javaMailSender = javaMailSender;
}

@Async
public void sendEmail(SimpleMailMessage email) {
javaMailSender.send(email);
}

@Async
public void sendEmail(MimeMessage email) {
javaMailSender.send(email);
Expand Down
2 changes: 2 additions & 0 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
network_mode: "host"
environment:
- TZ=Asia/Seoul
volumes:
- ~/econo-recruit/server/volumes/mysql:/var/lib/mysql
backend:
image: blackbean99/econo-recruit:0.0.1
container_name: backend
Expand Down

0 comments on commit 77e6b57

Please sign in to comment.