TestProject Forum

Docker Agent on Digital Ocean Ubuntu not detected

Hi,

I’m using the the docker image on a Digital Ocean droplet using the docker-compose file below. It all installs and runs correctly, but it is not detected in the TestProject interface. Is there some other step I need to take in order for it to work? I’m fairly new to Docker, so I may be doing something wrong.

version: "3.1"
services:
  testproject-agent:
    image: testproject/agent:latest
    container_name: testproject-agent
    depends_on:
      - chrome
      - firefox
    volumes:
      - /home/testproject:/var/testproject/agent
    environment:
      TP_API_KEY: "MYAPIKEY"
      CHROME: "chrome:4444"
      CHROME_EXT: "localhost:5555"
      FIREFOX: "firefox:4444"
      FIREFOX_EXT: "localhost:5556"
  chrome:
    image: selenium/standalone-chrome
    volumes:
      - /dev/shm:/dev/shm
    ports: 
      - "5555:4444"                     
  firefox:
    image: selenium/standalone-firefox
    volumes:
      - /dev/shm:/dev/shm
    ports:
      - "5556:4444"

Hi chris,
When you ran this .yaml locally did it ran successfully?
Also is your API key valid? make sure it is to register this agent to your account.
If you still having this issue please contact us at our support chat.