chore: update database username to euchre_camp and hostname to postgresql
This commit is contained in:
@@ -13,8 +13,8 @@ services:
|
||||
environment:
|
||||
# Database Configuration
|
||||
- DATABASE_PROVIDER=postgresql
|
||||
- DATABASE_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp
|
||||
- DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@postgres:5432/euchre_camp_shadow
|
||||
- DATABASE_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp
|
||||
- DATABASE_SHADOW_URL=postgresql://euchre_camp:euchrepassword@postgresql:5432/euchre_camp_shadow
|
||||
|
||||
# Better Auth Configuration
|
||||
# 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}
|
||||
|
||||
depends_on:
|
||||
postgres:
|
||||
postgresql:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
@@ -41,12 +41,12 @@ services:
|
||||
networks:
|
||||
- euchre-network
|
||||
|
||||
postgres:
|
||||
postgresql:
|
||||
image: postgres:15-alpine
|
||||
container_name: euchre-camp-postgres
|
||||
environment:
|
||||
- POSTGRES_DB=euchre_camp
|
||||
- POSTGRES_USER=euchre
|
||||
- POSTGRES_USER=euchre_camp
|
||||
# IMPORTANT: Change this password in production!
|
||||
- POSTGRES_PASSWORD=euchrepassword
|
||||
ports:
|
||||
@@ -55,7 +55,7 @@ services:
|
||||
- euchre_camp_postgres_data:/var/lib/postgresql/data
|
||||
- ./scripts/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U euchre -d euchre_camp"]
|
||||
test: ["CMD-SHELL", "pg_isready -U euchre_camp -d euchre_camp"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user