Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions exemples/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
db:
type: local # or remote
version: 14 # docker image version
# image: pgvector/pgvector
# type: remote
# host: host
# user: user
Expand Down
6 changes: 5 additions & 1 deletion odooghost/config/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ class PostgresStackConfig(StackServiceConfig):
"""
Type of database config
"""
version: int
image: t.Optional[str] = None
"""
Database image (default to postgres)
"""
version: str
"""
Database version
"""
Expand Down
2 changes: 1 addition & 1 deletion odooghost/services/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def is_remote(self) -> bool:

@property
def base_image_tag(self) -> str:
return f"postgres:{self.config.version}"
return f"{self.config.image or 'postgres'}:{self.config.version}"

@property
def has_custom_image(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion odooghost/web/api/schema_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def odoo_version(self) -> float:
return self.instance._config.services.odoo.version

@strawberry.field
def db_version(self) -> int:
def db_version(self) -> str:
Copy link
Copy Markdown
Collaborator Author

@BurkhalterY BurkhalterY May 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not tested yet :)
but it seams to be used only for displaying the info in views

return self.instance._config.services.db.version

@strawberry.field
Expand Down
Loading