.env Configuration
# PostgreSQL Database URL for Prisma or Drizzle ORM
DATABASE_URL="postgresql://dcd_user:super_secret_pw@192.168.32.129:5432/production_app?sslmode=prefer"
# Redis Cache URL
REDIS_URL="redis://:secure_redis_token@192.168.32.129:6379"DevCloudDesk automatically generates encrypted connection strings upon database creation.
Standard URI Formats:#
- PostgreSQL:
postgresql://{user}:{password}@{host}:{port}/{dbname}?sslmode=prefer - MySQL:
mysql://{user}:{password}@{host}:{port}/{dbname} - Redis:
redis://:{password}@{host}:{port} - MongoDB:
mongodb://{user}:{password}@{host}:{port}/{dbname}?authSource=admin
Internal Docker Network vs Public IP:#
- Internal Network: If your deployed full-stack application runs on the same VPS, connect via the private internal bridge network (e.g.
db_postgres_123:5432). This eliminates port exposure on the public internet. - Public IP: For remote developer access, DevCloudDesk maps a secure high port with firewall rules.