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