diff --git a/CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc b/CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc index d0b63a2..c09cab4 100644 --- a/CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc +++ b/CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc @@ -53,7 +53,7 @@ services: mybrowser: - image: nginx:1.17.9-alpine + image: hub.swarmlab.io:5480/hybrid-firefox deploy: mode: replicated restart_policy: @@ -72,14 +72,23 @@ services: - /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<3> #- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<3> #- /PATH_to_FILE/private.key:/etc/nginx/private.key //<3> + - /tmp/.X11-unix:/tmp/.X11-unix //<10> networks: - myapp //<5> + #privileged: true + environment: + - NODENAME=${NODENAME} + - NODENETWORK=${NODENETWORK} + - DISPLAY=\${DISPLAY} //<10> + #cap_add: + # - NET_ADMIN //<11> networks: myapp: //<5> driver: overlay + ---- <1> Service name @@ -91,6 +100,8 @@ networks: <7> Start server <8> Resources config <9> Restart policy +<10> X app +<11> use host net