| 1 |
services: |
| 2 |
nginx: |
| 3 |
build: nginx-build |
| 4 |
volumes: |
| 5 |
- ./static:/usr/share/nginx/html |
| 6 |
ports: |
| 7 |
- 8090:80 |
| 8 |
|
| 9 |
nginx2: |
| 10 |
build: nginx-build |
| 11 |
volumes: |
| 12 |
- staticVol:/usr/share/nginx/html:ro |
| 13 |
- /usr/src/app/node_modules |
| 14 |
- otherVol:/usr/share/nginx/test |
| 15 |
ports: |
| 16 |
- 9090:80 |
| 17 |
configs: |
| 18 |
- myconfig |
| 19 |
secrets: |
| 20 |
- mysecret |
| 21 |
|
| 22 |
volumes: |
| 23 |
staticVol: |
| 24 |
otherVol: |
| 25 |
name: myVolume |
| 26 |
|
| 27 |
configs: |
| 28 |
myconfig: |
| 29 |
file: ./static/index.html |
| 30 |
|
| 31 |
secrets: |
| 32 |
mysecret: |
| 33 |
file: ./static/index.html |