Skip to content

Commit d630067

Browse files
committed
fix azure deployment
1 parent a252006 commit d630067

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.devcontainer/docker-compose.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,3 @@ services:
1313

1414
# Overrides default command so things don't shut down after the process ends.
1515
command: sleep infinity
16-
17-
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
18-
network_mode: service:db
19-
20-
volumes:
21-
postgres-data:

.github/workflows/azure-dev.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
AZURE_OPENAI_EMBED_DEPLOYMENT_VERSION: ${{ vars.AZURE_OPENAI_EMBED_DEPLOYMENT_VERSION }}
3636
AZURE_OPENAI_EMBED_DEPLOYMENT_CAPACITY: ${{ vars.AZURE_OPENAI_EMBED_DEPLOYMENT_CAPACITY }}
3737
AZURE_OPENAI_EMBED_DIMENSIONS: ${{ vars.AZURE_OPENAI_EMBED_DIMENSIONS }}
38+
POSTGRES_HOST: ${{ vars.POSTGRES_HOST }}
39+
POSTGRES_USERNAME: ${{ vars.POSTGRES_USERNAME }}
40+
POSTGRES_PASSWORD: ${{ vars.POSTGRES_PASSWORD }}
41+
POSTGRES_DATABASE: ${{ vars.POSTGRES_DATABASE }}
3842

3943
steps:
4044
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
160160
### Setting up the environment file
161161
162162
1. Obtain Neon Database Credentials
163-
- From Azure portal, find the Neon Serverless Postgres Organization service and click on Portal URL.
163+
- From [Azure portal](https://portal.azure.com/), find the Neon Serverless Postgres Organization service and click on Portal URL.
164164
- This brings you to the **[Neon Console](https://console.neon.tech/)**
165165
- Click “New Project”
166166
- Choose an Azure region

azure.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@ pipeline:
5757
- AZURE_OPENAI_EMBEDDING_COLUMN
5858
- AZURE_OPENAI_EVAL_DEPLOYMENT
5959
- AZURE_OPENAI_EVAL_MODEL
60+
- POSTGRES_HOST
61+
- POSTGRES_USERNAME
62+
- POSTGRES_PASSWORD
63+
- POSTGRES_DATABASE

infra/core/database/neon/serverlessPostgres.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ resource neonOrganization 'Neon.Postgres/organizations@2024-08-01-preview' = {
1515
planId: 'neon_serverless_postgres_azure_prod_free'
1616
planName: 'Free Plan'
1717
publisherId: 'neon1722366567200'
18-
termId: 'P1M'
19-
termUnit: 'gmz7xq9ge3py'
18+
termId: 'gmz7xq9ge3py'
19+
termUnit: 'P1M'
2020
}
2121
subscriptionId: subscription().id
2222
}

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
169169
tags: tags
170170
}
171171

172-
var neonServerlessPostgresName = '${prefix}-neon'
172+
var neonServerlessPostgresName = '${prefix}-db'
173173

174174
module neonPostgres 'core/database/neon/serverlessPostgres.bicep' = {
175-
name: 'postgresql'
175+
name: 'neon-serverless-postgres'
176176
scope: resourceGroup
177177
params: {
178178
name: neonServerlessPostgresName

0 commit comments

Comments
 (0)