summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-25 17:25:10 +0100
committerGitHub <noreply@github.com>2022-02-25 17:25:10 +0100
commit774d5b4c538d93889bf743b6cd7d01a85f8715e6 (patch)
treeece773efb8f625a05b0d8304ce610cf2e51368f0 /README.md
parent2f1de56509948e4aecac058adeb07c3502bdf818 (diff)
feat: use Docker in production (#12)
* build: add experimental feature outputStandalone With this option, Next.js can create a standalone folder with the necessary files for a production deployment. It will be useful for Docker deployment. * chore: add Docker configuration * docs: update README with Docker instructions
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 04c2893..fda3b09 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,22 @@ Even if the source code and the contents are under free licenses, I don't want t
Other contents come from WordPress as headless CMS.
+## Production
+
+In any case, you need a reverse-proxy if you want to bind the live app to a domain.
+
+### With Docker
+
+Make sure Docker and Docker Compose are installed then, you can run: `sudo docker-compose up -d --build <service-name>`.
+
+`<service-name>` is optional. You don't need it the first time. However, if you want to rebuild and update only one container, it can be useful.
+
+If you wish to use custom ports, you can edit your `.env` file and specify `APP_DOCKER_PORT_PROD` and `APP_DOCKER_PORT_DEV` variables. By default the ports are respectively `3000` and `3200`.
+
+### Without Docker
+
+Just run `yarn build && yarn start`.
+
## Development
### First step