From 434a21f56e6c8f4f00ef4b35cc1c63c6ed82cc18 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 21 Dec 2024 01:41:08 -0600 Subject: [PATCH] refactor: add docker stack configuration --- .../content/docs/core/troubleshooting.mdx | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/apps/docs/content/docs/core/troubleshooting.mdx b/apps/docs/content/docs/core/troubleshooting.mdx index 0ba829a..f40be95 100644 --- a/apps/docs/content/docs/core/troubleshooting.mdx +++ b/apps/docs/content/docs/core/troubleshooting.mdx @@ -83,6 +83,30 @@ services: - 80 ``` +This is only valid for Docker Compose not for Docker Stack. + +When using Docker Stack, the ports are exposed automatically, so you don't need to specify them explicitly. + +Example of what not to do: + +```yaml +services: + app: + image: dokploy/dokploy:latest + ports: + - 3000 +``` + +Recommended approach: + +```yaml +services: + app: + image: dokploy/dokploy:latest + expose: + - 3000 +``` + Then, when creating the domain in Dokploy, specify the service name and port, like this: ```yaml