Add docker-compose.yml
to demo payload-3.0-demo + container image releases
#8114
Replies: 2 comments 1 reply
-
Ditto Problem |
Beta Was this translation helpful? Give feedback.
-
So, I have used next without payload 3 before and had no workaround, to build the app other than in the deployed container itself. So, the documentation on https://payloadcms.com/docs/production/deployment#docker seems to be wrong, since in a production environment you would probably not build the container on the same server, which contains the database. Or the database has to be available to the build server which also should not be the case in production. I changed the port, nextjs is using to start the server while building to be 3001 and set the readiness probe on the container in k8s to listen for port 3000 after 5 minutes. The Payload 3 app does not use static sites, but still needs a database connection on build, which seems a bit weird to me. So I would like to hear from a payload team member, if there is any other solution, if you are not building your application on the production server |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Just discovered the v3-preview (+ repo) and the fact that your team want to make payload-v3 a full-featured CMS + frontend as stated on this nextjs reddit-thread. Pretty exciting stuff!
Would love to make it easier to self-host, e.g. by providing an example
docker-compose.yml
in addition to instructions and pre-built container image on ghrc.io or docker-hub, which would be akin to running the steps listed on your readme - roughly.env.local
+pnpm i
+.\start-database.sh
+pnpm dev
.Might be too soon given this is still early development, but would make it easier to try-out-v3 and receive early-adopters feedback! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions