Skip to content

Commit 434a21f

Browse files
committed
refactor: add docker stack configuration
1 parent cb91890 commit 434a21f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

apps/docs/content/docs/core/troubleshooting.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,30 @@ services:
8383
- 80
8484
```
8585
86+
This is only valid for Docker Compose not for Docker Stack.
87+
88+
When using Docker Stack, the ports are exposed automatically, so you don't need to specify them explicitly.
89+
90+
Example of what not to do:
91+
92+
```yaml
93+
services:
94+
app:
95+
image: dokploy/dokploy:latest
96+
ports:
97+
- 3000
98+
```
99+
100+
Recommended approach:
101+
102+
```yaml
103+
services:
104+
app:
105+
image: dokploy/dokploy:latest
106+
expose:
107+
- 3000
108+
```
109+
86110
Then, when creating the domain in Dokploy, specify the service name and port, like this:
87111
88112
```yaml

0 commit comments

Comments
 (0)