I'm attempting to open port 5555 on an ovh host in order to access a docker container, containing an API. The docker container is launched via ci/cd on github actions, which works appropriately.
Here are some relevant pictures:
Dockerfile:
FROM python:3.10-slim
WORKDIR /code
COPY . /code/
EXPOSE 5555
RUN pip install -r requirements.txt
CMD ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "5555"]
Docker-compose file:
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile
image: 117hd-api:latest
ports:
- "5555:5555"
env_file:
- .env
volumes:
- /home/ubuntu/117HD-API/logs:/code/logs:rw
Verifying that the container is presently running
ubuntu@vps-177e15a2:/etc/ufw$ sudo docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ffacfd5e690d 117hd-api:latest "uvicorn api.app:app…" 4 hours ago Up 4 hours 0.0.0.0:5555->5555/tcp, :::5555->5555/tcp 117hd-api_api_1
Verifying that the firewall rules have been met
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443 ALLOW Anywhere
8080 ALLOW Anywhere
2022 ALLOW Anywhere
3306 ALLOW Anywhere
6379 ALLOW Anywhere
5555 ALLOW Anywhere
22 ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
2022 (v6) ALLOW Anywhere (v6)
3306 (v6) ALLOW Anywhere (v6)
6379 (v6) ALLOW Anywhere (v6)
5555 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
I have also done sudo ufw reload, sudo ufw enable after this step, and I have rebooted the system as well -- to confirm.
I have also verified that accessing the docker container from localhost:5555 works as well. This was checked with ssh -L 5555:localhost:5555 ubuntu@##.##.###.###.
Externally pinging the port does not seem to work appropriately:

Pinging another port, used by redis, works as intended:
Any next help steps would be excellent. Thank you.
