From 9527515649183231e8478a7e2aeae3c1a367eca6 Mon Sep 17 00:00:00 2001 From: Angelo Dini Date: Thu, 25 Jul 2024 16:06:44 +0200 Subject: [PATCH] docs: clarify docker-compose usage --- docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 30ad715..bc43dd5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,6 @@ -version: "3" - +# The docker-compose.yml file is __only__ used for local development. +# This means that changes to this file will not affect cloud deployments in any way. +# Read more at https://docs.divio.com/reference/docker-docker-compose/ services: web: build: . @@ -9,6 +10,8 @@ services: - ".:/app:rw" - "./data:/data:rw" - "node_modules:/app/node_modules" + # The following command is used to start the local development server. + # Removing this line will mimic the deployment behaviour on Divio Cloud. command: npm run dev -- --host 0.0.0.0 --port 80 volumes: