|
@ -53,7 +53,7 @@ services: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mybrowser: |
|
|
mybrowser: |
|
|
image: nginx:1.17.9-alpine |
|
|
image: hub.swarmlab.io:5480/hybrid-firefox |
|
|
deploy: |
|
|
deploy: |
|
|
mode: replicated |
|
|
mode: replicated |
|
|
restart_policy: |
|
|
restart_policy: |
|
@ -72,8 +72,16 @@ services: |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<3> |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<3> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<3> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<3> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<3> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<3> |
|
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix //<10> |
|
|
networks: |
|
|
networks: |
|
|
- myapp //<5> |
|
|
- myapp //<5> |
|
|
|
|
|
#privileged: true |
|
|
|
|
|
environment: |
|
|
|
|
|
- NODENAME=${NODENAME} |
|
|
|
|
|
- NODENETWORK=${NODENETWORK} |
|
|
|
|
|
- DISPLAY=\${DISPLAY} //<10> |
|
|
|
|
|
#cap_add: |
|
|
|
|
|
# - NET_ADMIN //<11> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networks: |
|
|
networks: |
|
@ -81,6 +89,7 @@ networks: |
|
|
driver: overlay |
|
|
driver: overlay |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
---- |
|
|
---- |
|
|
<1> Service name |
|
|
<1> Service name |
|
|
<2> Image name |
|
|
<2> Image name |
|
@ -91,6 +100,8 @@ networks: |
|
|
<7> Start server |
|
|
<7> Start server |
|
|
<8> Resources config |
|
|
<8> Resources config |
|
|
<9> Restart policy |
|
|
<9> Restart policy |
|
|
|
|
|
<10> X app |
|
|
|
|
|
<11> use host net |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|