Browse Source

add cloud info

master
zeus 3 years ago
parent
commit
289eb84c22
  1. 13
      CloudComputing_Lab/modules/ROOT/pages/docker-compose.adoc

13
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,8 +72,16 @@ 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:
@ -81,6 +89,7 @@ networks:
driver: overlay
----
<1> Service name
<2> Image name
@ -91,6 +100,8 @@ networks:
<7> Start server
<8> Resources config
<9> Restart policy
<10> X app
<11> use host net

Loading…
Cancel
Save