_internal_db
This commit is contained in:
@@ -52,6 +52,8 @@ networks:
|
|||||||
|
|
||||||
# Nieuw: gedeeld netwerk voor scaev en postgres
|
# Nieuw: gedeeld netwerk voor scaev en postgres
|
||||||
db_net:
|
db_net:
|
||||||
|
external: true
|
||||||
|
name: db_net
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
shared-auction-data:
|
shared-auction-data:
|
||||||
|
|||||||
@@ -15,15 +15,24 @@ if sys.version_info < (3, 10):
|
|||||||
|
|
||||||
# ==================== CONFIGURATION ====================
|
# ==================== CONFIGURATION ====================
|
||||||
BASE_URL = "https://www.troostwijkauctions.com"
|
BASE_URL = "https://www.troostwijkauctions.com"
|
||||||
|
POSTGRES_HOST = os.getenv("POSTGRES_HOST", "postgres")
|
||||||
|
POSTGRES_DB = os.getenv("POSTGRES_DB", "auctiondb")
|
||||||
|
POSTGRES_USER = os.getenv("POSTGRES_USER", "auction")
|
||||||
|
POSTGRES_PASSWORD = os.getenv("POSTGRES_PASSWORD", "heel-goed-wachtwoord")
|
||||||
|
# Full DSN
|
||||||
|
DATABASE_URL = os.getenv(
|
||||||
|
"DATABASE_URL",
|
||||||
|
f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_HOST}:5432/{POSTGRES_DB}"
|
||||||
|
).strip()
|
||||||
|
|
||||||
# Primary database: PostgreSQL only
|
# Primary database: PostgreSQL only
|
||||||
# Override via environment variable DATABASE_URL
|
# Override via environment variable DATABASE_URL
|
||||||
# Example: postgresql://user:pass@host:5432/dbname
|
# Example: postgresql://user:pass@host:5432/dbname
|
||||||
DATABASE_URL = os.getenv(
|
# DATABASE_URL = os.getenv(
|
||||||
"DATABASE_URL",
|
# "DATABASE_URL",
|
||||||
# Default provided by ops
|
# # Default provided by ops
|
||||||
"postgresql://auction:heel-goed-wachtwoord@192.168.1.159:5432/auctiondb",
|
# "postgresql://auction:heel-goed-wachtwoord@192.168.1.159:5432/auctiondb",
|
||||||
).strip()
|
# ).strip()
|
||||||
|
|
||||||
# Database connection pool controls (to avoid creating too many short-lived TCP connections)
|
# Database connection pool controls (to avoid creating too many short-lived TCP connections)
|
||||||
# Environment overrides: SCAEV_DB_POOL_MIN, SCAEV_DB_POOL_MAX, SCAEV_DB_POOL_TIMEOUT
|
# Environment overrides: SCAEV_DB_POOL_MIN, SCAEV_DB_POOL_MAX, SCAEV_DB_POOL_TIMEOUT
|
||||||
|
|||||||
Reference in New Issue
Block a user