env
This commit is contained in:
parent
35560e6a66
commit
f79327cd25
2 changed files with 11 additions and 7 deletions
|
|
@ -1,11 +1,11 @@
|
|||
# Database connection string
|
||||
DATABASE_URL=mongodb://127.0.0.1/your-database-name
|
||||
DATABASE_URI=mongodb://127.0.0.1/your-database-name
|
||||
|
||||
# Or use a PG connection string
|
||||
#DATABASE_URL=postgresql://127.0.0.1:5432/your-database-name
|
||||
#DATABASE_URI=postgresql://127.0.0.1:5432/your-database-name
|
||||
|
||||
# Used to encrypt JWT tokens
|
||||
PAYLOAD_SECRET=983ce713fd91f87296aab092dd4748c78ac5f69fa410f4ee2d4a0c4655a48063
|
||||
PAYLOAD_SECRET=YOUR_PAYLOAD_SECRET_HERE
|
||||
|
||||
# Used to configure CORS, format links and more. No trailing slash
|
||||
NEXT_PUBLIC_SERVER_URL=http://localhost:3002
|
||||
|
|
@ -14,4 +14,4 @@ NEXT_PUBLIC_SERVER_URL=http://localhost:3002
|
|||
CRON_SECRET=YOUR_CRON_SECRET_HERE
|
||||
|
||||
# Used to validate preview requests
|
||||
PREVIEW_SECRET=YOUR_SECRET_HERE
|
||||
PREVIEW_SECRET=YOUR_PREVIEW_SECRET_HERE
|
||||
|
|
|
|||
10
Dockerfile
10
Dockerfile
|
|
@ -14,11 +14,15 @@ COPY --from=deps /app/node_modules ./node_modules
|
|||
COPY . .
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV DATABASE_URI=mongodb://mongo:databasemultisite@portfolio-database-tkom3p:27017/?authSource=admin&directConnection=true
|
||||
ENV PAYLOAD_SECRET=983ce713fd91f87296aab092dd4748c78ac5f69fa410f4ee2d4a0c4655a48063
|
||||
ENV NEXT_PUBLIC_SERVER_URL=https://bymackie.com
|
||||
ENV NODE_ENV=production
|
||||
|
||||
ARG DATABASE_URI
|
||||
ARG PAYLOAD_SECRET
|
||||
ARG NEXT_PUBLIC_SERVER_URL
|
||||
ENV DATABASE_URI=$DATABASE_URI
|
||||
ENV PAYLOAD_SECRET=$PAYLOAD_SECRET
|
||||
ENV NEXT_PUBLIC_SERVER_URL=$NEXT_PUBLIC_SERVER_URL
|
||||
|
||||
RUN pnpm payload generate:types || echo "Skipped"
|
||||
RUN pnpm next build --experimental-build-mode compile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue