This repository was archived by the owner on Mar 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
Critical: Docker Compose Configuration Uses MongoDB Instead of PostgreSQL #6
Copy link
Copy link
Open
Description
Priority
🔴 Critical - Environment Setup
Location
docker-compose.yml:20-29
Problem Description
The docker-compose.yml file defines a MongoDB service:
mongo:
image: mongo:latest
ports:
- '27017:27017'However, the application is configured to use PostgreSQL:
src/payload.config.ts:86-91usespostgresAdaptersrc/lib/auth.ts:6usespg(PostgreSQL) Poolpackage.json:70includespgdependency
Additionally, the PostgreSQL service is commented out:
# postgres:
# restart: always
# image: postgres:latestImpact
- Docker-based development environment is completely broken
- Developers cannot use
docker-compose upto start the project - Inconsistency between documentation and actual setup
- Waste of time debugging connection failures
Expected docker-compose.yml
version: '3.8'
services:
payload:
image: node:22-alpine
ports:
- '3000:3000'
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm dev"
depends_on:
- postgres
env_file:
- .env
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/python_secrets
postgres:
image: postgres:16-alpine
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=python_secrets
volumes:
pgdata:
node_modules:Related Issues
- Critical: Syntax Error in auth.ts Configuration #3 - .env.example also has MongoDB reference
Steps to Fix
- Remove MongoDB service from docker-compose.yml
- Uncomment and configure PostgreSQL service
- Update the
payloadservice to depend onpostgresinstead ofmongo - Update connection string in docker-compose environment
- Test
docker-compose upfrom a clean state - Update
docs/SETUP.mdwith correct Docker instructions
Additional Context
This issue, combined with #3, makes the project completely unable to start via Docker. Both must be fixed together.
Reactions are currently unavailable