-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π [Chore] Dockerize postgreSQL #35
Conversation
- TypeORM κ³Ό db μ°κ²°ν΄μ μ¬μ©νκΈ° μν entity file μ μ. - λͺ¨λ foreign constraint μ μ©, cascade μ μ©μν¨. μ견 λλ λ³΄κ³ μμ .
- postgres container μ¬λ¦¬λ docker-compose.yml μμ± - yarn 컀맨λλ‘ compose up κ°λ₯νλλ‘ package.json νμΌ μμ - yarn db, yarn db:down, yarn db:reset
- entity λ‘ λ§λ ν μ΄λΈλ€μ pg_dump λ‘ export νμμ΅λλ€. - yarn db ν `psql -U username -d dbname -f create-table.sql` ν! start ν΄μ£ΌμΈμ.
μ°μ!! app μ΄κΈ° μ€νμμ issue / docs λ‘ λ°λ‘ μ μ΄μ pin ν΄μ£Όμ€ μ μλμ©? >_< |
λ΄μ© 보좩ν΄μ pin μλ£νμ΅λλ€!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ³ μνμ ¨μ΅λλ€ λ°±μλ μ₯λ........
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entity.. κ³ μνμ ¨μ΅λλ€μ
Summary
Describe your changes
docker-compose.yml
μμ±docker compose up
κ°λ₯νλλ‘package.json
νμΌ μμ yarn db
,yarn db:down
,yarn db:reset
create-table.sql
νμΌ μΆκ°π΄ νλ ! app μ΄κΈ° μ€νμμ
backend
λλ ν 리 μμμ μ€νν΄μ£ΌμΈμ.yarn db
psql -U username -d dbname -f ../database/create-table.sql
psql
μ μ€μΉκ° νμν μ μμ΅λλ€.brew install psql
yarn run start
Issue number and link