fix: move cache:warmup to runtime entrypoint, fix POSTGRES_PASSWORD default

cache:warmup at build time fails because .env.local is not available in the
image (gitignored). Moved to entrypoint.sh which runs after volume mounts.
Also added default value for POSTGRES_PASSWORD in docker-compose.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gwadaking
2026-04-01 17:44:05 -04:00
parent 2cef3725e9
commit 7ecb71599d
3 changed files with 21 additions and 7 deletions

View File

@@ -25,9 +25,9 @@ services:
image: postgis/postgis:16-3.4
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-sargasses}
POSTGRES_USER: ${POSTGRES_USER:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-sargasses_db}
POSTGRES_USER: ${POSTGRES_USER:-rs971_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
volumes:
- db_data:/var/lib/postgresql/data
networks: