Skip to content

Commit

Permalink
non-standard postgres port..
Browse files Browse the repository at this point in the history
  • Loading branch information
skyl committed Nov 20, 2024
1 parent 7308b3e commit d70dfdb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ corpora plan issue

## Ports
- **App:** 8877
- **Database:** 5432
- **Database:** 5482

## Notes
- Variations in Docker setup can be found in `../docker-compose.yaml` and `../docker/README.md`.
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"postCreateCommand": "/workspace/.devcontainer/setup.sh",
"forwardPorts": [
8877,
5432
5482
],
"remoteUser": "vscode"
}
2 changes: 1 addition & 1 deletion .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
postgres:
image: ghcr.io/${{ github.repository_owner }}/postgres-pgvector:17
ports:
- 5432:5432
- 5482:5482
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
- "5482:5482"
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
Expand Down
2 changes: 1 addition & 1 deletion py/packages/corpora_proj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"PASSWORD": os.environ.get("POSTGRES_PASSWORD", "postgres"),
# db is from the docker compose service name
"HOST": os.environ.get("POSTGRES_HOST", "corpora-db"),
"PORT": os.environ.get("POSTGRES_PORT", "5432"),
"PORT": os.environ.get("POSTGRES_PORT", "5482"),
# not usable with async
# "ATOMIC_REQUESTS": True,
}
Expand Down

0 comments on commit d70dfdb

Please sign in to comment.