DokployD
Dokploy2y ago
24 replies
Kirill

How to assign subdomain to docker compose application?

Im playing around with compose feature, following docs from here https://docs.dokploy.com/en/docker-compose/example
For me it seems that traefic labels do nothing. I was trying to deploy https://github.com/Dokploy/docker-compose-test/blob/main/docker-compose.yml example app but it traefic service and configuration is not affected.
I also see cryptic errors in docker logs for dokploy like
Error Error: child exited with code 18
    at ChildProcess.<anonymous> (file:///app/dist/server.mjs:1:49388)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:303:5)
    at Process.callbackTrampoline (node:internal/async_hooks:128:17) {
  code: 18,
  stderr: BufferListStream {
    _bufs: [
      <Buffer 74 69 6d 65 3d 22 32 30 32 34 2d 30 36 2d 32 31 54 31 32 3a 33 37 3a 33 32 5a 22 20 6c 65 76 65 6c 3d 77 61 72 6e 69 6e 67 20 6d 73 67 3d 22 2f 65 74 ... 94 more bytes>,
...

Not sure if its related...

Currently Im editing traefic config files in dynamic/ myself to assign hosts, not ideal. Would be great to have a way to assign a subdomain to a port in a nice way
image.png
Learn how to use Docker Compose with Dokploy
Example
GitHub
Contribute to Dokploy/docker-compose-test development by creating an account on GitHub.
docker-compose-test/docker-compose.yml at main · Dokploy/docker-com...
Was this page helpful?