chore: change default database name to autopilot_db and user to autopilot
This commit is contained in:
parent
bc31a69621
commit
0c39f6141b
|
|
@ -2,8 +2,9 @@
|
|||
# Copy this file to .env and fill in the real values before deploying
|
||||
|
||||
# ─── Database (PostgreSQL) ───────────────────────────────────────────────────
|
||||
DB_URL=jdbc:postgresql://postgres:5432/localagent_cloud
|
||||
DB_USER=localagent
|
||||
DB_NAME=autopilot_db
|
||||
DB_URL=jdbc:postgresql://postgres:5432/${DB_NAME}
|
||||
DB_USER=autopilot
|
||||
DB_PASS=changeme_strong_password_here
|
||||
|
||||
# ─── Security ────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ services:
|
|||
image: postgres:15-alpine
|
||||
container_name: autopilot-postgres
|
||||
environment:
|
||||
POSTGRES_DB: localagent_cloud
|
||||
POSTGRES_DB: ${DB_NAME:-autopilot_db}
|
||||
POSTGRES_USER: ${DB_USER}
|
||||
POSTGRES_PASSWORD: ${DB_PASS}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d localagent_cloud"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME:-autopilot_db}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# This file is active when running on the 'dev' branch with the 'local' profile.
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:5432/localagent_cloud
|
||||
username: localagent
|
||||
password: localagent
|
||||
url: jdbc:postgresql://localhost:5432/autopilot_db
|
||||
username: autopilot
|
||||
password: autopilot
|
||||
jpa:
|
||||
hibernate:
|
||||
ddl-auto: update # Useful for local dev to auto-update schema
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ spring:
|
|||
name: autopilot-master
|
||||
datasource:
|
||||
# Production default: PostgreSQL (set DB_URL/DB_USER/DB_PASS on AWS for RDS)
|
||||
url: ${DB_URL:jdbc:postgresql://localhost:5432/localagent_cloud}
|
||||
username: ${DB_USER:localagent}
|
||||
password: ${DB_PASS:localagent}
|
||||
url: ${DB_URL:jdbc:postgresql://localhost:5432/autopilot_db}
|
||||
username: ${DB_USER:autopilot}
|
||||
password: ${DB_PASS:autopilot}
|
||||
driver-class-name: org.postgresql.Driver
|
||||
hikari:
|
||||
minimum-idle: 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue