Current time: 09-20-2020, 05:50 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running wpt server and agent with docker-compose
02-16-2019, 03:17 PM (This post was last modified: 02-18-2019 02:24 PM by jbaptiste.)
Post: #2
RE: Running wpt server and agent with docker-compose
Got it working, privileged:true and network_mode: "host" parameters are needed, it seems it's not enough with cap_add: NET_ADMIN. This is the docker-compose.yml file that is working for me:

Code:
version: "2.2"
services:
  wpt_server:
    build: .
    image: webpagetest/server:custom
    volumes:
      - ./volumes/wpt_data/dat:/var/www/html/dat
      - ./volumes/wpt_data/results:/var/www/html/results
      - ./volumes/wpt_data/logs:/var/www/html/logs
    ports:
      - 4000:80
  wpt_agent:
    image: webpagetest/agent
    init: true
    environment:
      SERVER_URL: http://localhost:4000/work/
      LOCATION: desktop
      EXTRA_ARGS: "-m debug --checknet yes --log /debug.log -vvvv"
    depends_on:
      - wpt_server
    privileged: true
    network_mode: "host"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Running wpt server and agent with docker-compose - jbaptiste - 02-16-2019 03:17 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)