diff --git a/README.md b/README.md index 8763a83..b7c2e26 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,16 @@ A recipe for deploying a SvelteKit app via Docker Compose. This project owes a lot to [this reference](https://medium.com/@loic.joachim/dockerize-sveltekit-with-node-adapter-62c5dc6fc15a). +## To set up your SvelteKit project, ensure that your svelte.config.js file has this line: + + // import adapter from '@sveltejs/adapter-auto'; + import adapter from '@sveltejs/adapter-node'; + +and then run + + npm i -D @sveltejs/adapter-node + npm i dotenv + ## To build a new image docker-compose build diff --git a/env.sample b/env.sample index 26e33dc..67aa57c 100644 --- a/env.sample +++ b/env.sample @@ -1 +1,4 @@ -# copy this to .env to enable... +# copy this file to .env to enable... + +PORT=5173 # or whatever port you want for your reverse proxy +HOST=127.0.0.1 # or 0.0.0.0 to listen on all interfaces