docs: removes MONGODB_URI (#3482)

This commit is contained in:
Tylan Davis
2023-10-09 18:07:09 -04:00
committed by GitHub
parent ace3e577f6
commit 8bfae6b932
2 changed files with 3 additions and 3 deletions

View File

@@ -412,7 +412,7 @@ dotenv.config({
path: path.resolve(__dirname, '../.env'),
})
const { PAYLOAD_SECRET, MONGODB_URI } = process.env
const { PAYLOAD_SECRET } = process.env
const doAction = async (): Promise<void> => {
await payload.init({

View File

@@ -160,7 +160,7 @@ DigitalOcean provides extremely helpful documentation that can walk you through
## Docker
This is an example of a multi-stage docker build of Payload for production. Ensure you are setting your environment variables on deployment, like `PAYLOAD_SECRET`, `PAYLOAD_CONFIG_PATH`, and `MONGODB_URI` if needed.
This is an example of a multi-stage docker build of Payload for production. Ensure you are setting your environment variables on deployment, like `PAYLOAD_SECRET`, `PAYLOAD_CONFIG_PATH`, and `DATABASE_URI` if needed.
```dockerfile
FROM node:18-alpine as base
@@ -210,7 +210,7 @@ services:
depends_on:
- mongo
environment:
MONGODB_URI: mongodb://mongo:27017/payload
DATABASE_URI: mongodb://mongo:27017/payload
PORT: 3000
NODE_ENV: development
PAYLOAD_SECRET: TESTING