Skip to content

Commit

Permalink
build: compose 내에서 DB 연결
Browse files Browse the repository at this point in the history
컨테이너간에는 컨테이너명으로 DB에 접근해야 함, 참고: https://old.reddit.com/r/docker/comments/jsshgu/help_nodjs_mysql_dockercompose_connect/gc1ktqr/
  • Loading branch information
scarf005 committed Oct 8, 2024
1 parent 2fd83bf commit 4bab394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ services:
- ./backend/logs:/app/backend/logs
ports:
- 3000:3000
environment:
- MYSQL_HOST=database
env_file: .env

0 comments on commit 4bab394

Please sign in to comment.