{"id":6412,"date":"2026-05-29T22:49:49","date_gmt":"2026-05-29T13:49:49","guid":{"rendered":"https:\/\/secondlife.lol\/?p=6412"},"modified":"2026-05-29T22:49:50","modified_gmt":"2026-05-29T13:49:50","slug":"fastapi-render-supabase-deployment-troubleshooting","status":"publish","type":"post","link":"https:\/\/secondlife.lol\/ja\/fastapi-render-supabase-deployment-troubleshooting\/","title":{"rendered":"FastAPI Render Supabase \ubc30\ud3ec: \uc644\ubcbd\ud55c \ud2b8\ub7ec\ube14\uc288\ud305\uacfc \uc5d0\ub7ec \ud574\uacb0 \uac00\uc774\ub4dc"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\ubc31\uc5d4\ub4dc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub85c\uceec \ud658\uacbd\uc5d0\uc11c \uac1c\ubc1c\ud558\ub294 \uac83\uacfc, \uc774\ub97c \uc2e4\uc81c \ud074\ub77c\uc6b0\ub4dc \ud658\uacbd\uc5d0 \uc62c\ub9ac\ub294 \uac83\uc740 \uc644\uc804\ud788 \ub2e4\ub978 \ucc28\uc6d0\uc758 \uc774\uc57c\uae30\uc785\ub2c8\ub2e4. \ud2b9\ud788 \ub85c\uceec\uc5d0\uc11c \uac00\ubccd\uac8c \uc0ac\uc6a9\ud558\ub358 SQLite\ub97c \uac77\uc5b4\ub0b4\uace0, \ud504\ub85c\ub355\uc158 \ub808\ubca8\uc758 \ud074\ub77c\uc6b0\ub4dc \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc778 PostgreSQL\ub85c \uc804\ud658\ud558\ub294 \uacfc\uc815\uc5d0\uc11c\ub294 \uc218\ub9ce\uc740 \uc608\uc0c1\uce58 \ubabb\ud55c \uc5d0\ub7ec\uc640 \ub9c8\uc8fc\ud558\uac8c \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \uae00\uc5d0\uc11c\ub294 \ud30c\uc774\uc36c(Python) \uae30\ubc18\uc758 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc778 <a href=\"https:\/\/fastapi.tiangolo.com\/ko\/\" target=\"_blank\" rel=\"noopener\">FastAPI<\/a>\ub97c \ud65c\uc6a9\ud558\uc5ec, \ubb34\ub8cc \ud074\ub77c\uc6b0\ub4dc \ud638\uc2a4\ud305 \uc11c\ube44\uc2a4\uc778 Render\uc640 \uac15\ub825\ud55c PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc778 <a href=\"https:\/\/supabase.com\/\" target=\"_blank\" rel=\"noopener\">Supabase<\/a>\ub97c \uc5f0\ub3d9\ud558\ub294 <strong>FastAPI Render Supabase \ubc30\ud3ec<\/strong>\uc758 \uc804\uccb4 \uacfc\uc815\uacfc \uce58\uc5f4\ud588\ub358 \ud2b8\ub7ec\ube14\uc288\ud305 \uae30\ub85d\uc744 \uc0c1\uc138\ud788 \uacf5\uc720\ud569\ub2c8\ub2e4.<\/p>\n\n\n<style>.kb-image6412_905405-08 .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<div class=\"wp-block-kadence-image kb-image6412_905405-08\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-600x600.jpg\" alt=\"FastAPI Render Supabase\" class=\"kb-img wp-image-6413\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-600x600.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-300x300.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-150x150.jpg 150w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-768x768.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-12x12.jpg 12w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284.jpg 1024w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption><em>\u25b2 \uc131\uacf5\uc801\uc778 FastAPI Render Supabase \ubc30\ud3ec\ub97c \uc704\ud55c \ud074\ub77c\uc6b0\ub4dc \uc544\ud0a4\ud14d\ucc98 \uac1c\ub150\ub3c4<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">1. \uc65c FastAPI Render Supabase \ubc30\ud3ec\uc778\uac00?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uac1c\ubc1c \ucd08\uae30 \ub2e8\uacc4\uc5d0\uc11c\ub294 \ud30c\uc77c \uae30\ubc18\uc758 SQLite\uac00 \ube60\ub974\uace0 \ud3b8\ub9ac\ud569\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 Render\uc640 \uac19\uc740 \ud074\ub77c\uc6b0\ub4dc \ud658\uacbd\uc5d0 \ubc30\ud3ec\ud558\uac8c \ub418\uba74 \uc774\uc57c\uae30\uac00 \ub2ec\ub77c\uc9d1\ub2c8\ub2e4. Render\uc758 \ubb34\ub8cc \uc6f9 \uc11c\ube44\uc2a4\ub294 \uc778\uc2a4\ud134\uc2a4\uac00 \uc7ac\uc2dc\uc791\ub420 \ub54c\ub9c8\ub2e4 \ub85c\uceec \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc774 \ucd08\uae30\ud654\ub418\ub294 &#8216;Ephemeral Filesystem(\ud718\ubc1c\uc131 \ud30c\uc77c \uc2dc\uc2a4\ud15c)&#8217; \ud2b9\uc131\uc744 \uac00\uc9d1\ub2c8\ub2e4. \uc989, \uae30\uaecf \uc800\uc7a5\ud55c \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\uc640 \uac8c\uc2dc\ubb3c\ub4e4\uc774 \uc11c\ubc84 \uc7ac\uc2dc\uc791\uacfc \ud568\uaed8 \ubaa8\ub450 \uc99d\ubc1c\ud574\ubc84\ub9ac\ub294 \ucc38\uc0ac\uac00 \ubc1c\uc0dd\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub7ec\ud55c \ud55c\uacc4\ub97c \uadf9\ubcf5\ud558\uae30 \uc704\ud574 \uc601\uad6c\uc801\uc778 \ub370\uc774\ud130 \uc2a4\ud1a0\ub9ac\uc9c0\uac00 \ud544\uc218\uc801\uc774\uba70, \uadf8 \ub300\uc548\uc73c\ub85c <strong>Supabase\uc758 \ubb34\ub8cc PostgreSQL<\/strong>\uc774 \uac00\uc7a5 \uac01\uad11\ubc1b\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc720\uc9c0\ubcf4\uc218\uac00 \ud3b8\ub9ac\ud558\uace0 \uac15\ub825\ud55c \uc0dd\ud0dc\uacc4\ub97c \uc790\ub791\ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \ub530\ub77c\uc11c <strong>FastAPI Render Supabase \ubc30\ud3ec<\/strong> \uc544\ud0a4\ud14d\ucc98\ub294 \ube44\uc6a9 \uc5c6\uc774 \uace0\uc131\ub2a5 \ubc31\uc5d4\ub4dc\ub97c \uad6c\ucd95\ud558\ub824\ub294 \uac1c\ubc1c\uc790\ub4e4\uc5d0\uac8c \ucd5c\uace0\uc758 \uc870\ud569(Stack)\uc73c\ub85c \ubd88\ub9bd\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2. \ubc30\ud3ec \uc790\ub3d9\ud654 \uc2a4\ud06c\ub9bd\ud2b8 \uc900\ube44\ud558\uae30<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uc548\uc815\uc801\uc778 FastAPI Render Supabase \ubc30\ud3ec\ub97c \uc704\ud574\uc11c\ub294, Render\uac00 \ucf54\ub4dc\ub97c \uac00\uc838\uac14\uc744 \ub54c \uc790\ub3d9\uc73c\ub85c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud14c\uc774\ube14\uc744 \ub9c8\uc774\uadf8\ub808\uc774\uc158(Alembic)\ud55c \ub4a4, \uc11c\ubc84\ub97c \ub744\uc6b8 \uc218 \uc788\ub3c4\ub85d \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>build.sh<\/code> (\ube4c\ub4dc \uc2a4\ud06c\ub9bd\ud2b8)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\npip install -r requirements.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>start.sh<\/code> (\uc2e4\ud589 \uc2a4\ud06c\ub9bd\ud2b8)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nalembic upgrade head\nuvicorn app.main:app --host 0.0.0.0 --port $PORT<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>render.yaml<\/code> (Render \ube14\ub8e8\ud504\ub9b0\ud2b8 \uc124\uc815)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  - type: web\n    name: insanka-api\n    env: python\n    plan: free\n    buildCommand: \".\/build.sh\"\n    startCommand: \".\/start.sh\"\n    envVars:\n      - key: PYTHON_VERSION\n        value: 3.12.0\n      - key: DATABASE_URL\n        sync: false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc704\uc640 \uac19\uc774 \uc778\ud504\ub77c\ub97c \ucf54\ub4dc\ub85c \uad00\ub9ac(IaC)\ud558\uba74, \ud5a5\ud6c4 \uae43\ud5c8\ube0c(GitHub)\uc5d0 \ucf54\ub4dc\ub97c Push\ud560 \ub54c\ub9c8\ub2e4 Render\uac00 \uc54c\uc544\uc11c <code>FastAPI Render Supabase \ubc30\ud3ec<\/code> \uacfc\uc815\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3. \uccab \ubc88\uc9f8 \uc2dc\ub828: \ub77c\uc774\ube0c\ub7ec\ub9ac \uc758\uc874\uc131 \ubc0f \ud658\uacbd \ubcc0\uc218 \ub204\ub77d \uc5d0\ub7ec<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uae43\ud5c8\ube0c\uc5d0 \ucf54\ub4dc\ub97c \ubc00\uc5b4 \ub123\uace0 Render \ub300\uc2dc\ubcf4\ub4dc\uc5d0\uc11c \uccab \ubc30\ud3ec\ub97c \uc9c0\ucf1c\ubcf4\ub294 \uc21c\uac04, \ud130\ubbf8\ub110 \ub85c\uadf8\uc5d0 \ubd89\uc740 \uc5d0\ub7ec\ub4e4\uc774 \uc3df\uc544\uc9c0\uae30 \uc2dc\uc791\ud588\uc2b5\ub2c8\ub2e4. \uc131\uacf5\uc801\uc778 FastAPI Render Supabase \ubc30\ud3ec\ub85c \uac00\ub294 \uccab \ubc88\uc9f8 \uad00\ubb38\uc774\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n<style>.kb-image6412_7909d9-0e .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<div class=\"wp-block-kadence-image kb-image6412_7909d9-0e\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-600x600.jpg\" alt=\"terminal_error_bug_1780061324426\" class=\"kb-img wp-image-6414\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-600x600.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-300x300.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-150x150.jpg 150w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-768x768.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426-12x12.jpg 12w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/terminal_error_bug_1780061324426.jpg 1024w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption><em>\u25b2 \ubc30\ud3ec \uc911 \ub9c8\uc8fc\ud55c \uce58\uba85\uc801\uc778 \uc2dc\uc2a4\ud15c \uc5d0\ub7ec \ub85c\uadf8<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">[\uc5d0\ub7ec 1] python-magic \ub77c\uc774\ube0c\ub7ec\ub9ac \ucda9\ub3cc<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ImportError: failed to find libmagic.  Check your installation<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc6d0\uc778 \ubd84\uc11d:<\/strong> \ud30c\uc77c\uc758 MIME \ud0c0\uc785\uc744 \uac80\uc0ac\ud558\uae30 \uc704\ud574 \ub85c\uceec \ub9e5(Mac) \ud658\uacbd\uc5d0\uc11c \uc798 \uc791\ub3d9\ud558\ub358 <code>python-magic<\/code> \ud328\ud0a4\uc9c0\uac00 \ub9ac\ub205\uc2a4(Linux) \uae30\ubc18\uc758 Render \uc11c\ubc84\uc5d0\uc11c\ub294 <code>libmagic<\/code> C-\ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ucc3e\uc9c0 \ubabb\ud574 \uc11c\ubc84 \uad6c\ub3d9 \uc790\uccb4\ub97c \ub9c8\ube44\uc2dc\ucf30\uc2b5\ub2c8\ub2e4.<br><strong>\ud574\uacb0 \ubc29\ubc95:<\/strong> OS \uc2dc\uc2a4\ud15c \ud328\ud0a4\uc9c0\uc5d0 \uc758\uc874\ud558\uc9c0 \uc54a\ub294 \uc21c\uc218 \ud30c\uc774\uc36c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 <code>filetype<\/code>\uc73c\ub85c \ucf54\ub4dc\ub97c \uc804\uba74 \uad50\uccb4\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">[\uc5d0\ub7ec 2] Alembic \ud658\uacbd \ubcc0\uc218 \ub85c\ub4dc \uc2e4\ud328<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>FAILED: No 'script_location' key found in configuration.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc6d0\uc778 \ubd84\uc11d:<\/strong> \ub450 \uac00\uc9c0 \uc2e4\uc218\uac00 \uacb9\ucce4\uc2b5\ub2c8\ub2e4. \uccab\uc9f8, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub9c8\uc774\uadf8\ub808\uc774\uc158\uc744 \ub2f4\ub2f9\ud558\ub294 <code>.gitignore<\/code> \ud30c\uc77c\uc5d0 \uc2e4\uc218\ub85c <code>alembic.ini<\/code>\ub97c \ud3ec\ud568\uc2dc\ucf1c \uae43\ud5c8\ube0c\uc5d0\uc11c \ub204\ub77d\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub458\uc9f8, <code>alembic\/env.py<\/code>\uc5d0\uc11c \ub85c\uceec\uc758 <code>.env<\/code> \ud658\uacbd \ubcc0\uc218\ub97c \uc77d\uc5b4\uc624\uae30 \uc704\ud55c <code>python-dotenv<\/code> \ud328\ud0a4\uc9c0\uac00 <code>requirements.txt<\/code>\uc5d0 \ube60\uc838 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<br><strong>\ud574\uacb0 \ubc29\ubc95:<\/strong> <code>.gitignore<\/code>\uc5d0\uc11c <code>alembic.ini<\/code>\ub97c \uc81c\uc678\ud558\uace0 \uae43\ud5c8\ube0c\uc5d0 Push \ud588\uc73c\uba70, <code>requirements.txt<\/code>\uc5d0 <code>python-dotenv<\/code>\ub97c \ucd94\uac00\ud558\uc5ec \ubb38\uc81c\ub97c \uae54\ub054\ud558\uac8c \ud574\uacb0\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4. \ub450 \ubc88\uc9f8 \uc2dc\ub828: \uc545\uba85 \ub192\uc740 \ub124\ud2b8\uc6cc\ud06c \uc811\uc18d \ubd88\uac00 (Network is unreachable)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ud328\ud0a4\uc9c0 \uc5d0\ub7ec\ub97c \ud574\uacb0\ud558\uace0 \ub098\ub2c8, \ub4dc\ub514\uc5b4 \uc11c\ubc84\uac00 \ucf1c\uc9c0\ub098 \uc2f6\uc5c8\ub294\ub370 \uac00\uc7a5 \ud574\uacb0\ud558\uae30 \uae4c\ub2e4\ub85c\uc6b4 \uc545\uba85 \ub192\uc740 \ub124\ud2b8\uc6cc\ud06c \uc5d0\ub7ec\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4. \uc218\ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4\uc774 <strong>FastAPI Render Supabase \ubc30\ud3ec<\/strong> \uacfc\uc815\uc5d0\uc11c \uc88c\uc808\ud558\ub294 \uad6c\uac04\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sqlalchemy.exc.OperationalError: (psycopg.OperationalError) connection is bad: connection to server at \"2406:da14:25a:5800:bf8d:ffb8:bf7f:6810\", port 5432 failed: Network is unreachable\nIs the server running on that host and accepting TCP\/IP connections?<\/code><\/pre>\n\n\n<style>.kb-image6412_72e6f4-42 .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<div class=\"wp-block-kadence-image kb-image6412_72e6f4-42\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-600x600.jpg\" alt=\"cloud_database_nodes_1780061339007\" class=\"kb-img wp-image-6415\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-600x600.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-300x300.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-150x150.jpg 150w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-768x768.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007-12x12.jpg 12w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/cloud_database_nodes_1780061339007.jpg 1024w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption><em>\u25b2 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uac04\uc758 \ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \ud1b5\uc2e0 \ubaa8\uc2dd\ub3c4<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc6d0\uc778 \ubd84\uc11d:<\/strong><br>\uc5d0\ub7ec \ub85c\uadf8\ub97c \uc790\uc138\ud788 \ubcf4\uba74 <code>2406:da14:...<\/code> \ud615\ud0dc\uc758 <strong>IPv6 \uc8fc\uc18c<\/strong>\ub85c \uc5f0\uacb0\uc744 \uc2dc\ub3c4\ud558\ub2e4\uac00 \ud295\uae34 \uac83\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br>\ucd5c\uadfc Supabase\ub294 \ubcf4\uc548\uacfc \uc131\ub2a5\uc744 \uc704\ud574 \uae30\ubcf8 \ub2e4\uc774\ub809\ud2b8 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \uc8fc\uc18c(<code>db.xxxx.supabase.co<\/code>)\ub97c <strong>IPv6 \uc804\uc6a9<\/strong>\uc73c\ub85c \ubcc0\uacbd\ud588\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc Render\uc758 \ubb34\ub8cc \ud2f0\uc5b4(Free Web Services)\ub294 \uc678\ubd80\ub85c \ub098\uac00\ub294 <strong>\uc544\uc6c3\ubc14\uc6b4\ub4dc IPv6 \ud2b8\ub798\ud53d\uc744 \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/strong><br>\uc989, Render \uc11c\ubc84\ub294 \uad6c\ud615 IPv4 \ub124\ud2b8\uc6cc\ud06c\ub97c \uc4f0\ub294\ub370, Supabase\ub294 \ucd5c\uc2e0 IPv6 \uc8fc\uc18c\ub9cc \uc5f4\uc5b4\ub450\uc5c8\uae30 \ub54c\ubb38\uc5d0 \uae38\uc774 \ub04a\uaca8\ubc84\ub9b0 \uac83\uc785\ub2c8\ub2e4. \uc124\uc0c1\uac00\uc0c1\uc73c\ub85c \uae30\uc874\uc5d0 \uc0ac\uc6a9\ud558\ub358 \ube44\ub3d9\uae30 DB \ub4dc\ub77c\uc774\ubc84\uc778 <code>asyncpg<\/code>\ub294 \uc774 \uc0c1\ud669\uc5d0\uc11c \uc720\uc5f0\ud558\uac8c IPv4\ub85c \uc6b0\ud68c(Fallback)\ud558\uc9c0 \ubabb\ud558\uace0 \uc5d0\ub7ec\ub97c \ubc49\uace0 \uc8fd\uc5b4\ubc84\ub9ac\ub294 \ubc84\uadf8\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ud575\uc2ec \ud574\uacb0\ucc45: Connection Pooler\uc640 Psycopg3 \ub3c4\uc785<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \uce58\uba85\uc801\uc778 \ub124\ud2b8\uc6cc\ud06c \ub2e8\uc808 \uc5d0\ub7ec\ub97c \uadf9\ubcf5\ud558\uae30 \uc704\ud574 2\ub2e8\uacc4 \uc870\uce58\ub97c \ucde8\ud574\uc57c \uc644\ubcbd\ud55c FastAPI Render Supabase \ubc30\ud3ec\uac00 \uc644\uc131\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Supabase\uc758 Session Pooler \uc8fc\uc18c \uc0ac\uc6a9\ud558\uae30<\/strong><br>Supabase \ub300\uc2dc\ubcf4\ub4dc\uc758 <code>Connect<\/code> \uba54\ub274\uc5d0 \ub4e4\uc5b4\uac00\uc11c, \uc5f0\uacb0 \ubc29\uc2dd(Connection Method)\uc744 <code>Direct connection<\/code>\uc774 \uc544\ub2cc <strong><code>Session pooler<\/code> (\ub610\ub294 Transaction pooler)<\/strong> \ub85c \ubcc0\uacbd\ud574\uc57c \ud569\ub2c8\ub2e4.<br>\uadf8\ub7ec\uba74 \uc811\uc18d \uc8fc\uc18c\uac00 <code>aws-0-...pooler.supabase.com:5432<\/code> \ucc98\ub7fc \ubc14\ub00c\ub294\ub370, \uc774 \ud480\ub7ec(Pooler) \uc11c\ubc84\ub294 IPv4\ub97c \uae30\ubcf8\uc801\uc73c\ub85c \uc644\ubcbd\ud558\uac8c \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub4dc\ub77c\uc774\ubc84\ub97c <code>psycopg[binary]<\/code> (Psycopg3)\ub85c \uad50\uccb4<\/strong><br><code>asyncpg<\/code> \ub300\uc2e0, \ucd5c\uc2e0 SQLAlchemy 2.0\uc5d0\uc11c \uacf5\uc2dd \uc9c0\uc6d0\ud558\uba70 \ub124\ud2b8\uc6cc\ud06c \ud504\ub85c\ud1a0\ucf5c(IPv4\/IPv6 Dual Stack) \ucc98\ub9ac\uac00 \ud6e8\uc52c \uc6b0\uc218\ud55c <code>psycopg3<\/code> \ub4dc\ub77c\uc774\ubc84\ub85c \uc804\uba74 \uad50\uccb4\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># app\/config.py \uc5d0 \ub4dc\ub77c\uc774\ubc84 \uc790\ub3d9 \ubcc0\ud658 \ub85c\uc9c1 \ucd94\uac00\n@property\ndef get_database_url(self) -&gt; str:\n    url = self.DATABASE_URL\n    if url.startswith(\"postgres:\/\/\"):\n        url = url.replace(\"postgres:\/\/\", \"postgresql+psycopg:\/\/\", 1)\n    elif url.startswith(\"postgresql:\/\/\"):\n        url = url.replace(\"postgresql:\/\/\", \"postgresql+psycopg:\/\/\", 1)\n    return url<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub85c\uc368 \uc5b4\ub5a4 \ud658\uacbd \ubcc0\uc218\uac00 \ub4e4\uc5b4\uc640\ub3c4 \uc790\ub3d9\uc73c\ub85c \ud30c\uc774\uc36c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc548\uc804\ud55c \ube44\ub3d9\uae30 psycopg3 \ub4dc\ub77c\uc774\ubc84\ub97c \uac70\uccd0 Supabase\uc5d0 \uc5f0\uacb0\ub418\ub3c4\ub85d \uc870\uce58\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">5. \ub9c8\uce68\ub0b4, \uc131\uacf5\uc801\uc778 \ub77c\uc774\ube0c \uc11c\ubc84 \uad6c\ub3d9!<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ubaa8\ub4e0 \ub124\ud2b8\uc6cc\ud06c \uc124\uc815\uacfc \ud328\ud0a4\uc9c0 \uc758\uc874\uc131\uc744 \ubc14\ub85c\uc7a1\uace0, \ub9c8\uc9c0\ub9c9 \uae43\ud5c8\ube0c Push\ub97c \uc9c4\ud589\ud588\uc2b5\ub2c8\ub2e4. Render\uc758 \uc790\ub3d9 \ubc30\ud3ec \ub85c\uadf8\uac00 \uc2a4\ud06c\ub864\ub9c1 \ub418\ub354\ub2c8, \ub4dc\ub514\uc5b4 \ub9c8\ubc95 \uac19\uc740 \ucd08\ub85d\uc0c9 \ubb38\uad6c\uac00 \ub4f1\uc7a5\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>INFO  &#91;alembic.runtime.migration] Running upgrade  -&gt; db49427b8143, Initial\nINFO  &#91;alembic.runtime.migration] Running upgrade db49427b8143 -&gt; 86ca8b2add43, Add M2 models\nINFO  &#91;alembic.runtime.migration] Running upgrade 86ca8b2add43 -&gt; 998cfdb0d11c, Add M3 models\n...\nINFO:     Application startup complete.\nINFO:     Uvicorn running on http:\/\/0.0.0.0:10000 (Press CTRL+C to quit)\n==&gt; Your service is live \ud83c\udf89<\/code><\/pre>\n\n\n<style>.kb-image6412_a85174-2f .kb-image-has-overlay:after{opacity:0.3;}<\/style>\n<div class=\"wp-block-kadence-image kb-image6412_a85174-2f\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-600x600.jpg\" alt=\"build_successful_green_1780061356645\" class=\"kb-img wp-image-6416\" srcset=\"https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-600x600.jpg 600w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-300x300.jpg 300w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-150x150.jpg 150w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-768x768.jpg 768w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645-12x12.jpg 12w, https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/build_successful_green_1780061356645.jpg 1024w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><figcaption><em>\u25b2 \uae38\uc5c8\ub358 \ud2b8\ub7ec\ube14\uc288\ud305\uc758 \ub05d, Build Successful \uc0c1\ud0dc \ud654\uba74<\/em><\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Alembic\uc774 Supabase \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc811\uc18d\ud558\uc5ec \uc6b0\ub9ac\uac00 \uc124\uacc4\ud588\ub358 \ud68c\uc6d0, \uac8c\uc2dc\ud310, \ub313\uae00, \ud3ec\uc778\ud2b8 \uc2dc\uc2a4\ud15c \ud14c\uc774\ube14\ub4e4\uc744 \uc644\ubcbd\ud558\uac8c \uc77c\uad04 \uc0dd\uc131\ud574 \ub0c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\ub9c8\ubb34\ub9ac\ud558\uba70<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>FastAPI Render Supabase \ubc30\ud3ec<\/strong>\ub294 \ucd08\uae30 \uc138\ud305 \uc2dc \ub124\ud2b8\uc6cc\ud06c(IPv4\/IPv6) \uc774\uc288\uc640 \ube44\ub3d9\uae30 \ub4dc\ub77c\uc774\ubc84\uc758 \ud638\ud658\uc131 \ubb38\uc81c\ub85c \uc9c4\uc785 \uc7a5\ubcbd\uc774 \ub2e4\uc18c \ub192\uc740 \ud3b8\uc785\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \ud55c \ubc88 \uc81c\ub300\ub85c \uc138\ud305\uc744 \ub9c8\uccd0\ub450\uba74, \uae43\ud5c8\ube0c \ucee4\ubc0b \ud55c \ubc88\uc73c\ub85c \uc778\ud504\ub77c \ubc30\ud3ec\uac00 \uc644\uc804\ud788 \uc790\ub3d9\ud654\ub418\uba70 \ub9c9\uac15\ud55c \ubb34\ub8cc \ud074\ub77c\uc6b0\ub4dc \ud658\uacbd\uc744 \ub204\ub9b4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \uae00\uc774 FastAPI Render Supabase \ubc30\ud3ec \uacfc\uc815\uc5d0\uc11c \uc800\uc640 \ub611\uac19\uc740 \ubd89\uc740\uc0c9 \uc5d0\ub7ec \ub85c\uadf8\ub97c \ub9c8\uc8fc\ud558\uace0 \uacc4\uc2e4 \uc218\ub9ce\uc740 \uac1c\ubc1c\uc790\ubd84\ub4e4\uc758 \uc2dc\uac04\uc744 \uc544\uaef4\uc8fc\ub294 \uadc0\uc911\ud55c \uae38\uc7a1\uc774\uac00 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uc131\uacf5\uc801\uc778 \ubc30\ud3ec\ub97c \ucd95\ud558\ud569\ub2c8\ub2e4!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubc31\uc5d4\ub4dc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub85c\uceec \ud658\uacbd\uc5d0\uc11c \uac1c\ubc1c\ud558\ub294 \uac83\uacfc, \uc774\ub97c \uc2e4\uc81c \ud074\ub77c\uc6b0\ub4dc&#8230;<\/p>","protected":false},"author":3,"featured_media":6413,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3],"tags":[1526,1524,1528,1527,1525,34,41,1522,1523,1529],"class_list":["post-6412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-coding","tag-fastapi","tag-alembic","tag-deployment","tag-postgresql","tag-psycopg","tag-python","tag-render","tag-supabase","tag-troubleshooting","tag-1529"],"taxonomy_info":{"category":[{"value":3,"label":"\ud30c\uc774\uc36c(Python)"}],"post_tag":[{"value":1526,"label":"\"FastAPI"},{"value":1524,"label":"Alembic"},{"value":1528,"label":"Deployment"},{"value":1527,"label":"PostgreSQL"},{"value":1525,"label":"psycopg"},{"value":34,"label":"python"},{"value":41,"label":"render"},{"value":1522,"label":"Supabase"},{"value":1523,"label":"Troubleshooting"},{"value":1529,"label":"\ubc31\uc5d4\ub4dc\ubc30\ud3ec\""}]},"featured_image_src_large":["https:\/\/secondlife.lol\/wp-content\/uploads\/2026\/05\/fastapi_render_architecture_1780061308284-600x600.jpg",600,600,true],"author_info":{"display_name":"TERE","author_link":"https:\/\/secondlife.lol\/ja\/author\/tere\/"},"comment_info":0,"category_info":[{"term_id":3,"name":"\ud30c\uc774\uc36c(Python)","slug":"python-coding","term_group":0,"term_taxonomy_id":3,"taxonomy":"category","description":"","parent":20,"count":117,"filter":"raw","cat_ID":3,"category_count":117,"category_description":"","cat_name":"\ud30c\uc774\uc36c(Python)","category_nicename":"python-coding","category_parent":20}],"tag_info":[{"term_id":1526,"name":"\"FastAPI","slug":"fastapi","term_group":0,"term_taxonomy_id":1526,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1524,"name":"Alembic","slug":"alembic","term_group":0,"term_taxonomy_id":1524,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1528,"name":"Deployment","slug":"deployment","term_group":0,"term_taxonomy_id":1528,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1527,"name":"PostgreSQL","slug":"postgresql","term_group":0,"term_taxonomy_id":1527,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1525,"name":"psycopg","slug":"psycopg","term_group":0,"term_taxonomy_id":1525,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":34,"name":"python","slug":"python","term_group":0,"term_taxonomy_id":34,"taxonomy":"post_tag","description":"","parent":0,"count":22,"filter":"raw"},{"term_id":41,"name":"render","slug":"render","term_group":0,"term_taxonomy_id":41,"taxonomy":"post_tag","description":"","parent":0,"count":2,"filter":"raw"},{"term_id":1522,"name":"Supabase","slug":"supabase","term_group":0,"term_taxonomy_id":1522,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1523,"name":"Troubleshooting","slug":"troubleshooting","term_group":0,"term_taxonomy_id":1523,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"},{"term_id":1529,"name":"\ubc31\uc5d4\ub4dc\ubc30\ud3ec\"","slug":"%eb%b0%b1%ec%97%94%eb%93%9c%eb%b0%b0%ed%8f%ac","term_group":0,"term_taxonomy_id":1529,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw"}],"_links":{"self":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/6412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/comments?post=6412"}],"version-history":[{"count":3,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/6412\/revisions"}],"predecessor-version":[{"id":6419,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/posts\/6412\/revisions\/6419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/media\/6413"}],"wp:attachment":[{"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/media?parent=6412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/categories?post=6412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/secondlife.lol\/ja\/wp-json\/wp\/v2\/tags?post=6412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}