Io socket.io not working when used with Redis and Traefik

Maybe something like this, untested

Docker-compose networks:

networks:
  default: ~
  proxy:
    name: 'wappler-compose_proxy'
    external: true

And Redis service:

redis:
    image: 'redis:alpine' # Remember to set Redis version
    hostname: 'redis'
    networks:
      - default
    volumes:
      - 'redis-volume:/data'

Web service, relevant excerpt:

web:
  networks:
    - default
    - proxy

The project’s network I named “default”, which would be what docker-compose would create for each project if you didn’t specify the “proxy” network (feel free to edit this name), so the actual real name becomes something like “projectName_default” (docker-compose does this automatically)

So, each service joins the “projectName_default” network, and the web service also joins the global “proxy” network