Why is my symbolic link not linking, but creating a file inside the diretory I’m trying to link

Im trying to do a proyect on Drupal using Docker and Composer. This is my docker-compose.yml

app:
   build: ./app/.
   volumes:
    - /home/username/practicas/docker_drupal/drupal_ensi:/var/www
   links:
    - db
   ports:
    - 86:80

db:
   image: mariadb:10.5.3
   volumes:
    - /home/username/practicas/docker_drupal/db:/var/lib/mysql
   environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_USER=admin
    - MYSQL_PASSWORD=root
    - MYSQL_DATABASE=drupalDb

This is where I create the Drupal project with composer.

~/practicas/docker_drupal$ docker exec -it docker_drupal_app_1 bash
[email protected]:/var/www/html# php -d memory_limit=-1 /usr/local/bin/composer create-project drupal-composer/drupal-project:8.x-dev some-dir --no-interaction

Then I move all the content of the some-dir directory to the /var/www/ level

[email protected]:/var/www/html# ls -l
total 4
drwxr-xr-x 6 root root 4096 May 22 09:57 some-dir
[email protected]:/var/www/html# cd ..
[email protected]:/var/www# ls -l
total 4
drwxr-xr-x 3 root root 4096 May 22 09:56 html
[email protected]:/var/www# mv html/some-dir/* ./
[email protected]:/var/www# ls -l
total 396
-rw-r--r--  1 root root  18046 May 22 09:56 LICENSE
-rw-r--r--  1 root root   6451 May 22 09:56 README.md
-rw-r--r--  1 root root   2370 May 22 09:56 composer.json
-rw-r--r--  1 root root 343241 May 22 09:57 composer.lock
drwxr-xr-x  4 root root   4096 May 22 09:56 drush
drwxr-xr-x  3 root root   4096 May 22 09:56 html
-rw-r--r--  1 root root    321 May 22 09:56 load.environment.php
-rw-r--r--  1 root root    481 May 22 09:56 phpunit.xml.dist
drwxr-xr-x  3 root root   4096 May 22 09:56 scripts
drwxr-xr-x 54 root root   4096 May 22 09:57 vendor
drwxr-xr-x  7 root root   4096 May 22 09:57 web

And then try to do the symbolic link between web and html. When the server tries to go to the html directory by default, it should redirect to the web directory, because there’s where the Drupal project is. (I dont know if I should do this inside the container or outside, but I would assume it really doesnt matter since its mounted in the docker-composer.yml, right? I dont know anymore at this point).

Whenever I try do the ln -s web/ html, it just creates a file inside the html folder, it doesnt create the link :c

~/practicas/docker_drupal/drupal_ensi$ sudo ln -s web/ html
[sudo] password for yindazai: 
[email protected]:~/practicas/docker_drupal/drupal_ensi$ ls -l
total 396
-rw-r--r--  1 root root   2370 may 22 11:56 composer.json
-rw-r--r--  1 root root 343241 may 22 11:57 composer.lock
drwxr-xr-x  4 root root   4096 may 22 11:56 drush
drwxr-xr-x  3 root root   4096 may 22 12:07 html
-rw-r--r--  1 root root  18046 may 22 11:56 LICENSE
-rw-r--r--  1 root root    321 may 22 11:56 load.environment.php
-rw-r--r--  1 root root    481 may 22 11:56 phpunit.xml.dist
-rw-r--r--  1 root root   6451 may 22 11:56 README.md
drwxr-xr-x  3 root root   4096 may 22 11:56 scripts
drwxr-xr-x 54 root root   4096 may 22 11:57 vendor
drwxr-xr-x  7 root root   4096 may 22 11:57 web

[email protected]:~/practicas/docker_drupal/drupal_ensi/html$ ls -l
total 4
drwxr-xr-x 2 root root 4096 may 22 11:58 some-dir
lrwxrwxrwx 1 root root    4 may 22 12:07 web -> web/

This last part was done outside the container, but if I do it inside, it doesnt create the link but a file inside the html folder.

I think I’am doing all the steps right, but obviously its not work, so any help would be indeed much appreciated. Thx.

Source: StackOverflow