Folders and files ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
ย
View all files
Repository files navigation
http://localhost:5050/ ๋ฅผ ๋ธ๋ผ์ฐ์ ๋ก ์ ์
์์ด๋์ admin@example.com, ๋น๋ฐ๋ฒํธ๋ฅผ admin ์ผ๋ก ๋ก๊ทธ์ธ
๋ธ๋ผ์ฐ์ ๋ก ์ ์ํ pgAdmin ์์ "Add New Server" ๋ฅผ ํด๋ฆญํด์ DB Connection ์ ์๋
Host name/address: localhost ๋ก ํ๋ฉด ์ฐ๊ฒฐ์ด ์๋จ. ifconfig ๋ฅผ ํตํด ๋ผ์ฐํฐ๊ฐ ์ ๊ณตํ๋ ip ์ฃผ์๋ฅผ ์์๋ด์ผํจ (192 ํน์ 172๋ก ์์)
Port: 5432
Maintenance database: postgres
Username: postgres
Password: postgres
http://localhost:8000/docs ๋ฅผ ๋ธ๋ผ์ฐ์ ๋ก ์ ์
API ๊ฐ ์ ์ ๋์ํ๋์ง ์ด๊ฒ์ ๊ฒ ํด๋ฆญํด๋ณด๊ธฐ (Swagger ๋ ์ฌ์ฉ๋ฒ ๋น์ท)
์ ์ถ ๊ธฐํ
2021.10.1(๊ธ) 24:00 (10/2๋ก ๋์ด๊ฐ๋ ์์ )
์ ์ถ ๋ฐฉ๋ฒ
Github Gist ๋งํฌ๋ฅผ Form์ ์์ฑํ์ฌ ์ ์ถ
Github Gist ์์ฑ ์, Create secret gist ๋ก ์์ฑ
์ ์ถ ๋งํฌ
๊ณผ์ ํ
ํ๋ฆฟ
์ฑ์ ๋ฐฉ๋ฒ
docker-compose.yml ํ์ผ์ด ์๊ฑด์ ๋ง๊ฒ ์์ฑ๋์๋์ง ํ์ธ
docker-compose.yml ์ด์ธ์ ์ ๊ณตํด๋๋ฆฐ ํ
ํ๋ฆฟ ์์ค์ ๋ณ๊ฒฝ์ด ์๋ ์ํ์์ sudo docker-compose up ๋ช
๋ น์ด ์ํ ์ ์ ์์ ์ผ๋ก ์ปจํ
์ด๋๊ฐ ๋ชจ๋ ์คํ๋๋์ง ํ์ธ
๋ชจ๋ ์กฐ๊ฑด์ ๋ง์กฑํด์ผ ํต๊ณผ ์ฒ๋ฆฌ ๋ฉ๋๋ค.
์ปจํ
์ด๋์ ํธ์คํธ๋ ๊ฐ๊ฐ 5432 ํฌํธ๋ก ํต์
์ปจํ
์ด๋๊ฐ ์ข
๋ฃ๋๋ฉด ํญ์ ์ฌ์์
ํ๊ฒฝ๋ณ์ 3๊ฐ์ง ์ค์
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
/var/lib/postgresql/data ๋ฅผ pgdata ๋ณผ๋ฅจ์ผ๋ก ํ ๋น
์ปจํ
์ด๋์ 5050 ํฌํธ์ ํธ์คํธ์ 80 ํฌํธ ์ฐ๊ฒฐ
์ปจํ
์ด๋๊ฐ ์ข
๋ฃ๋๋ฉด ํญ์ ์ฌ์์
ํ๊ฒฝ๋ณ์ 2๊ฐ์ง ์ค์
/var/lib/pgadmin ๋ฅผ pgadmindata ๋ณผ๋ฅจ์ผ๋ก ํ ๋น
ํ
ํ๋ฆฟ์ผ๋ก ์ ๊ณต๋ Dockerfile ์ ๋น๋ํ ์ด๋ฏธ์ง ์ฌ์ฉ
์ปจํ
์ด๋์ ํธ์คํธ๋ ๊ฐ๊ฐ 8000 ํฌํธ๋ก ํต์
postgreSQL(db) ์๋น์ค๊ฐ ์์๋ ์ดํ์ ์์
์ปจํ
์ด๋๊ฐ ์ข
๋ฃ๋๋ฉด ํญ์ ์ฌ์์
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Languages
Python
87.3%
Mako
8.3%
Dockerfile
3.4%
Shell
1.0%
You canโt perform that action at this time.