No Network Access with Portainer Stack

Hello. I have a yml here that does not allow access to these services through their defined ports.
Deploys successfully, just no network access locally. I’m pretty new to formatting these myself so any help would be appreciated. Thanks in advance.

version: "3.9"


    image: mysql:latest
    network_mode: bridge
    command: --authentication_policy=mysql_native_password 
    container_name: mysql
    restart: always
      - ""
      - /volume1/docker/mysql:/var/lib/mysql
      - MYSQL_USER=xxx
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=linkace
    image: phpmyadmin/phpmyadmin:latest
    network_mode: bridge
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
    container_name: phpmyadmin
    restart: always
      - ""
      - PMA_HOST:""
      - PMA_PORT:"12349:12349"

    image: linkace/linkace:simple
    container_name: linkace
    restart: unless-stopped
      - "/volume1/docker/linkace:/app/linkace"
      - ""
      # Remove the hash of the following line if you want to use local backups
      #- ./backups:/app/storage/app/backups

It is pretty hard to say anything when you replace everything with X-es, even the port numbers and there is no error message and what exactly you tried to do.

One thing that probably shouldn’t be in the service definitions is network_mode: bridge which connects the containers to the default docker bridge so your containers can’t communicate using service names as domaint names.

Since you removed the IP addresses as well and didn’t show how you connect to the services, I can’t tell you whether the port mapping is right or not, but that is what you could check too. And don’t forget the the right defnition is HOST_ADDRESS:HOST_PORT:CONTAINER_PORT where container port depends on what port the aplications is listening inside. The other port can be anything you like.

Thanks for the reply, and sorry about that. I went ahead and amended the code with example IPs to give a direct idea of where I was hoping to go?

In terms of the network_mode: bridge, should I just comment out each line?

You can. Then run docker compose up again to change the networks.

Have you checked what I suggested? I can’t decide whether you just put random example numbers to the ports or these are the ports, but I don’t think PHPMyadmin listens on the port you defined.