From 289eb84c22ad2f516e9be268cc287c7346cde4d7 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 4 Mar 2022 14:52:40 +0200 Subject: [PATCH] add cloud info --- .../modules/ROOT/pages/docker-compose.adoc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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