mirror of
https://github.com/Dokploy/website
synced 2025-06-26 18:16:01 +00:00
refactor: add docker stack configuration
This commit is contained in:
parent
cb91890b9b
commit
434a21f56e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user