|
@ -37,14 +37,14 @@ services: |
|
|
placement: |
|
|
placement: |
|
|
max_replicas_per_node: 1 |
|
|
max_replicas_per_node: 1 |
|
|
constraints: |
|
|
constraints: |
|
|
- node.labels.group==myapp //<7> |
|
|
- node.labels.group==myapp |
|
|
ports: |
|
|
ports: |
|
|
- "8080:80" |
|
|
- "8080:80" |
|
|
- "9443:443" |
|
|
- "9443:443" |
|
|
volumes: //<8> |
|
|
volumes: //<7> |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<9> |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<3> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<10> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<3> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<11> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<3> |
|
|
networks: |
|
|
networks: |
|
|
- myapp //<5> |
|
|
- myapp //<5> |
|
|
|
|
|
|
|
@ -62,14 +62,6 @@ networks: |
|
|
<5> Network to Use |
|
|
<5> Network to Use |
|
|
<6> Node Placement |
|
|
<6> Node Placement |
|
|
<7> Start server |
|
|
<7> Start server |
|
|
<10> *NEW* Service name |
|
|
|
|
|
<11> *NEW* Volume |
|
|
|
|
|
<12> *NEW* Port |
|
|
|
|
|
<13> *NEW* Label |
|
|
|
|
|
<14> Node Placement (Proxy) |
|
|
|
|
|
<15> Bind mount config files |
|
|
|
|
|
<16> Nginx config file |
|
|
|
|
|
<17> ssl keys |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|