Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
|
|
version: '3'
|
||
|
|
|
||
|
|
services:
|
||
|
|
payload:
|
||
|
|
image: node:18-alpine
|
||
|
|
ports:
|
||
|
|
- '3000:3000'
|
||
|
|
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
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
data:
|
||
|
|
node_modules:
|