feat: configure PostgreSQL database and fix TypeScript types

- Updated docker-compose.yml to use postgres:17-alpine
- Database credentials: ogb/ogb_dev_password/ogb_web
- Updated .env.example with correct PostgreSQL connection string
- Fixed plugins/index.ts to include Project type in SEO generateTitle/generateURL
- Changed site title from 'Payload Website Template' to 'OGB Solutions'
- Database ready for dev server startup
This commit is contained in:
2025-11-18 08:55:49 +01:00
parent d6a61b8499
commit 598a4c47e9
3 changed files with 16 additions and 34 deletions
+10 -26
View File
@@ -1,31 +1,15 @@
version: '3'
services:
payload:
image: node:18-alpine
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: ogb
POSTGRES_PASSWORD: ogb_dev_password
POSTGRES_DB: ogb_web
ports:
- '3000:3000'
- '5432:5432'
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
command: sh -c "yarn install && yarn dev"
depends_on:
- mongo
env_file:
- .env
mongo:
image: mongo:latest
ports:
- '27017:27017'
command:
- --storageEngine=wiredTiger
volumes:
- data:/data/db
logging:
driver: none
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
data:
node_modules:
postgres_data: