|
@ -37,14 +37,14 @@ services: |
|
|
placement: |
|
|
placement: |
|
|
max_replicas_per_node: 1 |
|
|
max_replicas_per_node: 1 |
|
|
constraints: |
|
|
constraints: |
|
|
- node.labels.group==myapp //<14> |
|
|
- node.labels.group==myapp //<7> |
|
|
ports: |
|
|
ports: |
|
|
- "8080:80" |
|
|
- "8080:80" |
|
|
- "9443:443" |
|
|
- "9443:443" |
|
|
volumes: //<15> |
|
|
volumes: //<8> |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<16> |
|
|
- /PATH_to_FILE/my.conf:/DIR_in_container/my.conf //<9> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<17> |
|
|
#- /PATH_to_FILE/public.crt:/etc/nginx/public.crt //<10> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<17> |
|
|
#- /PATH_to_FILE/private.key:/etc/nginx/private.key //<11> |
|
|
networks: |
|
|
networks: |
|
|
- myapp //<5> |
|
|
- myapp //<5> |
|
|
|
|
|
|
|
|