Running wpt server and agent with docker-compose
|
02-12-2019, 09:11 AM
Post: #1
|
|||
|
|||
Running wpt server and agent with docker-compose
Hi,
I'm trying to setup a server and an agent using docker and docker-compose, both running on the same machine (my laptop). No matter how I set the compose file I cannot get the agent to show up in the Test Location combo. This is my locations.ini: Quote:root@8a37986239aa:/var/www/html# cat settings/locations.ini When starting the containers with this docker-compose.yml file, mapping server's container port to a host port and exposing the agent's port: Code: version: "2.2" I get this error: Code: wpt_agent_1 | 03:22:06.880 - Resetting dropped connection: wpt_server And when also mapping agent port and using http://localhost:4000 instead of http://wpt_server for SERVER_URL: Code: version: "2.2" From the agent side everything seems fine, I see on the the agent logs these messages that seems to mean that everything is working ok but not getting any work from the server ? Code: wpt_agent_1 | 04:21:00.931 - Checking for work: http://localhost:4000/work/getwork.php?f=json&shards=1&reboot=1&location=Test&pc=Docker&version=18.10&screenwidth=1920&screenheight=1200&freedisk=0.759&upminutes=8925 But still the agent does not show up on the Test Location combo and no errors on the server logs, I'm really clueless with what I'm missing. Any ideas ?? Thanks in advance. |
|||
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" |
|||
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" |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)