Current time: 09-18-2019, 08:28 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-18-2019, 02:23 PM
Post: #3
RE: Running wpt server and agent with docker-compose
It seems that the key part is the privileged: true parameter, I also got it working behind a traefik proxy with this docker-compose file. The main difference with the previous one is neither the server or agent are mapping ports to the server, the server is accessed through traefik:

Code:
version: "2"
services:
  server:
    image: wepagetest/server:custom
    volumes:
      - ./webpagetest/volumes/wpt_data/dat:/var/www/html/dat
      - ./webpagetest/volumes/wpt_data/results:/var/www/html/results
      - ./webpagetest/volumes/wpt_data/logs:/var/www/html/logs
    labels:
      traefik.enable: true
      traefik.backend: server
      traefik.frontend.rule: Host:wpt.apukay.com
      traefik.port: 80
    restart: always

  agent:
    image: webpagetest/agent
    init: true
    environment:
      SERVER_URL: http://server/work/
      LOCATION: desktop
      EXTRA_ARGS: "-m debug --checknet yes --log /debug.log -vvvv"
    depends_on:
      - server
    cap_add:
      - NET_ADMIN
    privileged: true
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-18-2019 02:23 PM

Forum Jump:


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