chore: update database username to euchre_camp and hostname to postgresql

This commit is contained in:
2026-03-31 04:05:14 -07:00
parent 5b19e44062
commit a1a380f410
4 changed files with 19 additions and 19 deletions
+6 -6
View File
@@ -13,8 +13,8 @@ services:
environment: environment:
# Database Configuration # Database Configuration
- DATABASE_PROVIDER=postgresql - DATABASE_PROVIDER=postgresql
- DATABASE_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp - DATABASE_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp
- DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp_shadow - DATABASE_SHADOW_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp_shadow
# Better Auth Configuration # Better Auth Configuration
# IMPORTANT: Set these via CasaOS environment variables! # IMPORTANT: Set these via CasaOS environment variables!
@@ -29,7 +29,7 @@ services:
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000} - TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
depends_on: depends_on:
postgres: postgresql:
condition: service_healthy condition: service_healthy
volumes: volumes:
@@ -41,12 +41,12 @@ services:
networks: networks:
- euchre-network - euchre-network
postgres: postgresql:
image: postgres:15-alpine image: postgres:15-alpine
container_name: euchre-camp-postgres container_name: euchre-camp-postgres
environment: environment:
- POSTGRES_DB=euchre_camp - POSTGRES_DB=euchre_camp
- POSTGRES_USER=euchre - POSTGRES_USER=euchre_camp
# IMPORTANT: Change this password in production! # IMPORTANT: Change this password in production!
- POSTGRES_PASSWORD=euchrepassword - POSTGRES_PASSWORD=euchrepassword
ports: ports:
@@ -55,7 +55,7 @@ services:
- euchre_camp_postgres_data:/var/lib/postgresql/data - euchre_camp_postgres_data:/var/lib/postgresql/data
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh - ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U euchre -d euchre_camp"] test: ["CMD-SHELL", "pg_isready -U euchre_camp -d euchre_camp"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
+5 -5
View File
@@ -9,8 +9,8 @@ services:
environment: environment:
# Database Configuration for Development # Database Configuration for Development
- DATABASE_PROVIDER=postgresql - DATABASE_PROVIDER=postgresql
- DATABASE_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp - DATABASE_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp
- DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp_shadow - DATABASE_SHADOW_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp_shadow
# Better Auth Configuration # Better Auth Configuration
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-dev-secret-key} - BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-dev-secret-key}
@@ -23,7 +23,7 @@ services:
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000} - TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
depends_on: depends_on:
postgres: postgresql:
condition: service_healthy condition: service_healthy
volumes: volumes:
@@ -40,12 +40,12 @@ services:
networks: networks:
- euchre-network - euchre-network
postgres: postgresql:
image: postgres:15-alpine image: postgres:15-alpine
container_name: euchre-camp-postgres-dev container_name: euchre-camp-postgres-dev
environment: environment:
- POSTGRES_DB=euchre_camp - POSTGRES_DB=euchre_camp
- POSTGRES_USER=euchre - POSTGRES_USER=euchre_camp
- POSTGRES_PASSWORD=euchrepassword - POSTGRES_PASSWORD=euchrepassword
ports: ports:
- "5433:5432" # Use different port to avoid conflict with local PostgreSQL - "5433:5432" # Use different port to avoid conflict with local PostgreSQL
+6 -6
View File
@@ -9,8 +9,8 @@ services:
environment: environment:
# Database Configuration # Database Configuration
- DATABASE_PROVIDER=postgresql - DATABASE_PROVIDER=postgresql
- DATABASE_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp - DATABASE_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp
- DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp_shadow - DATABASE_SHADOW_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp_shadow
# Better Auth Configuration # Better Auth Configuration
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-your-secret-key-change-in-production} - BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-your-secret-key-change-in-production}
@@ -23,7 +23,7 @@ services:
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000} - TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-http://localhost:3000,http://127.0.0.1:3000}
depends_on: depends_on:
postgres: postgresql:
condition: service_healthy condition: service_healthy
volumes: volumes:
@@ -35,12 +35,12 @@ services:
networks: networks:
- euchre-network - euchre-network
postgres: postgresql:
image: postgres:15-alpine image: postgres:15-alpine
container_name: euchre-camp-postgres container_name: euchre-camp-postgres
environment: environment:
- POSTGRES_DB=euchre_camp - POSTGRES_DB=euchre_camp
- POSTGRES_USER=euchre - POSTGRES_USER=euchre_camp
- POSTGRES_PASSWORD=euchrepassword - POSTGRES_PASSWORD=euchrepassword
ports: ports:
- "5432:5432" - "5432:5432"
@@ -48,7 +48,7 @@ services:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh - ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U euchre -d euchre_camp"] test: ["CMD-SHELL", "pg_isready -U euchre_camp -d euchre_camp"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
+2 -2
View File
@@ -41,8 +41,8 @@ if [ ! -f .env ]; then
# Database Configuration # Database Configuration
DATABASE_PROVIDER=postgresql DATABASE_PROVIDER=postgresql
DATABASE_URL=postgresql://euchre:${POSTGRES_PASSWORD}@postgres:5432/euchre_camp DATABASE_URL=postgresql://euchre_camp:${POSTGRES_PASSWORD}@postgresql:5432/euchre_camp
DATABASE_SHADOW_URL=postgresql://euchre:${POSTGRES_PASSWORD}@postgres:5432/euchre_camp_shadow DATABASE_SHADOW_URL=postgresql://euchre_camp:${POSTGRES_PASSWORD}@postgresql:5432/euchre_camp_shadow
# Better Auth Configuration # Better Auth Configuration
BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET} BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}