feat(server): update deploy config for context (#10431)

This commit is contained in:
darkskygit
2025-03-12 11:59:46 +00:00
parent aa3bfb0a05
commit 514a5fc3a9
5 changed files with 11 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ services:
REDIS_SERVER_HOST: redis REDIS_SERVER_HOST: redis
db: db:
image: postgres:latest image: pgvector/pgvector:pg16
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data

View File

@@ -1,3 +1,6 @@
# postgres major version
DB_VERSION=16
# database credentials
DB_PASSWORD=affine DB_PASSWORD=affine
DB_USERNAME=affine DB_USERNAME=affine
DB_DATABASE_NAME=affine DB_DATABASE_NAME=affine

View File

@@ -3,7 +3,7 @@ services:
postgres: postgres:
env_file: env_file:
- .env - .env
image: postgres:16 image: postgres:${DB_VERSION:-16}
ports: ports:
- 5432:5432 - 5432:5432
environment: environment:

View File

@@ -432,7 +432,7 @@ jobs:
REDIS_SERVER_HOST: localhost REDIS_SERVER_HOST: localhost
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-
@@ -521,7 +521,7 @@ jobs:
REDIS_SERVER_HOST: localhost REDIS_SERVER_HOST: localhost
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-
@@ -617,7 +617,7 @@ jobs:
- build-server-native - build-server-native
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-
@@ -714,7 +714,7 @@ jobs:
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn affine @affine-test/affine-desktop-cloud e2e xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn affine @affine-test/affine-desktop-cloud e2e
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-

View File

@@ -40,7 +40,7 @@ jobs:
REDIS_SERVER_HOST: localhost REDIS_SERVER_HOST: localhost
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-
@@ -112,7 +112,7 @@ jobs:
- build-server-native - build-server-native
services: services:
postgres: postgres:
image: postgres image: pgvector/pgvector:pg16
env: env:
POSTGRES_PASSWORD: affine POSTGRES_PASSWORD: affine
options: >- options: >-