Merge pull request #5308 from sandros94/feat-service-neon
feat(service): Neon
This commit is contained in:
10603
CHANGELOG.md
10603
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
20
public/svgs/neon.svg
Normal file
20
public/svgs/neon.svg
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<svg width="158" height="44" viewBox="0 0 158 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 7.58621C0 3.39646 3.44137 0 7.68651 0H36.8952C41.1404 0 44.5817 3.39646 44.5817 7.58621V32.104C44.5817 36.4386 39.0241 38.3197 36.3287 34.8976L27.902 24.1991V37.1724C27.902 40.9432 24.8048 44 20.9842 44H7.68651C3.44137 44 0 40.6035 0 36.4138V7.58621ZM7.68651 6.06897C6.83748 6.06897 6.14921 6.74826 6.14921 7.58621V36.4138C6.14921 37.2517 6.83748 37.931 7.68651 37.931H21.2148C21.6393 37.931 21.7528 37.5914 21.7528 37.1724V19.7752C21.7528 15.4407 27.3104 13.5594 30.0059 16.9816L38.4325 27.6801V7.58621C38.4325 6.74826 38.5129 6.06897 37.6639 6.06897H7.68651Z" fill="#12FFF7"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 7.58621C0 3.39646 3.44137 0 7.68651 0H36.8952C41.1404 0 44.5817 3.39646 44.5817 7.58621V32.104C44.5817 36.4386 39.0241 38.3197 36.3287 34.8976L27.902 24.1991V37.1724C27.902 40.9432 24.8048 44 20.9842 44H7.68651C3.44137 44 0 40.6035 0 36.4138V7.58621ZM7.68651 6.06897C6.83748 6.06897 6.14921 6.74826 6.14921 7.58621V36.4138C6.14921 37.2517 6.83748 37.931 7.68651 37.931H21.2148C21.6393 37.931 21.7528 37.5914 21.7528 37.1724V19.7752C21.7528 15.4407 27.3104 13.5594 30.0059 16.9816L38.4325 27.6801V7.58621C38.4325 6.74826 38.5129 6.06897 37.6639 6.06897H7.68651Z" fill="url(#paint0_linear_10558_11751)"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 7.58621C0 3.39646 3.44137 0 7.68651 0H36.8952C41.1404 0 44.5817 3.39646 44.5817 7.58621V32.104C44.5817 36.4386 39.0241 38.3197 36.3287 34.8976L27.902 24.1991V37.1724C27.902 40.9432 24.8048 44 20.9842 44H7.68651C3.44137 44 0 40.6035 0 36.4138V7.58621ZM7.68651 6.06897C6.83748 6.06897 6.14921 6.74826 6.14921 7.58621V36.4138C6.14921 37.2517 6.83748 37.931 7.68651 37.931H21.2148C21.6393 37.931 21.7528 37.5914 21.7528 37.1724V19.7752C21.7528 15.4407 27.3104 13.5594 30.0059 16.9816L38.4325 27.6801V7.58621C38.4325 6.74826 38.5129 6.06897 37.6639 6.06897H7.68651Z" fill="url(#paint1_linear_10558_11751)"/>
|
||||||
|
<path d="M36.8954 0C41.1406 0 44.5819 3.39646 44.5819 7.58621V32.104C44.5819 36.4386 39.0243 38.3197 36.3289 34.8976L27.9022 24.1991V37.1724C27.9022 40.9432 24.805 44 20.9844 44C21.4089 44 21.753 43.6604 21.753 43.2414V19.7752C21.753 15.4407 27.3106 13.5594 30.0061 16.9816L38.4327 27.6801V1.51724C38.4327 0.679292 37.7445 0 36.8954 0Z" fill="#B9FFB3"/>
|
||||||
|
<path d="M75.1561 12.9622V24.4706L63.8496 12.9622H57.9648V31.7844H63.332V19.4155L75.6465 31.7844H80.5232V12.9622H75.1561Z" fill="white"/>
|
||||||
|
<path d="M90.4725 27.5898V24.2555H102.487V20.2491H90.4725V17.1569H105.048V12.9622H84.9964V31.7844H105.348V27.5898H90.4725Z" fill="white"/>
|
||||||
|
<path d="M119.61 32.4029C127.157 32.4029 132.061 28.746 132.061 22.3733C132.061 16.0006 127.157 12.3438 119.61 12.3438C112.063 12.3438 107.187 16.0006 107.187 22.3733C107.187 28.746 112.063 32.4029 119.61 32.4029ZM119.61 27.9393C115.415 27.9393 112.826 25.9226 112.826 22.3733C112.826 18.824 115.442 16.8073 119.61 16.8073C123.806 16.8073 126.394 18.824 126.394 22.3733C126.394 25.9226 123.806 27.9393 119.61 27.9393Z" fill="white"/>
|
||||||
|
<path d="M152.632 12.9622V24.4706L141.326 12.9622H135.441V31.7844H140.808V19.4155L153.123 31.7844H157.999V12.9622H152.632Z" fill="white"/>
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="paint0_linear_10558_11751" x1="44.5818" y1="44" x2="5.96033" y2="-0.503116" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#B9FFB3"/>
|
||||||
|
<stop offset="1" stop-color="#B9FFB3" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="paint1_linear_10558_11751" x1="44.5817" y1="44" x2="18.194" y2="33.6003" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#1A1A1A" stop-opacity="0.9"/>
|
||||||
|
<stop offset="1" stop-color="#1A1A1A" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.7 KiB |
44
templates/compose/neon-with-postgres.yaml
Normal file
44
templates/compose/neon-with-postgres.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# documentation: https://neon.tech
|
||||||
|
# slogan: The database you love, on a serverless platform designed to help you build reliable and scalable applications faster.
|
||||||
|
# tags: proxy, neon, postgresql
|
||||||
|
# logo: svgs/neon.svg
|
||||||
|
# port: 80, 2112
|
||||||
|
|
||||||
|
services:
|
||||||
|
neon-proxy:
|
||||||
|
image: 'ghcr.io/neondatabase/wsproxy:latest'
|
||||||
|
environment:
|
||||||
|
- SERVICE_FQDN_NEONPROXY
|
||||||
|
- SERVICE_FQDN_NEONPROMETHEUS_2112
|
||||||
|
- 'APPEND_PORT=postgres:5432'
|
||||||
|
- 'ALLOW_ADDR_REGEX=.*'
|
||||||
|
- LOG_TRAFFIC=false
|
||||||
|
- LOG_CONN_INFO=true
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD-SHELL
|
||||||
|
- 'nc -z 127.0.0.1 80'
|
||||||
|
interval: 5s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 20
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: 'postgres:17-alpine'
|
||||||
|
platform: linux/amd64
|
||||||
|
volumes:
|
||||||
|
- 'postgresql-data:/var/lib/postgresql/data'
|
||||||
|
environment:
|
||||||
|
- 'POSTGRES_USER=${SERVICE_USER_POSTGRESQL}'
|
||||||
|
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}'
|
||||||
|
- 'POSTGRES_DB=${POSTGRESQL_DATABASE:-postgres}'
|
||||||
|
- 'POSTGRES_HOST_AUTH_METHOD=password'
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD-SHELL
|
||||||
|
- 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
|
||||||
|
interval: 5s
|
||||||
|
timeout: 20s
|
||||||
|
retries: 10
|
Reference in New Issue
Block a user