From volume to Swarm config
This commit is contained in:
parent
0d5949bd5e
commit
94eac31a1a
|
@ -24,6 +24,15 @@ services:
|
||||||
window: 120s
|
window: 120s
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "service", "nginx", "status"]
|
test: ["CMD", "service", "nginx", "status"]
|
||||||
volumes:
|
configs:
|
||||||
- ../configs/node.conf:/etc/nginx/nginx.conf:ro
|
- source: nginx_conf
|
||||||
- ../content/index.html:/var/www/default/index.html
|
target: /etc/nginx/nginx.conf
|
||||||
|
- source:
|
||||||
|
target: nginx_static
|
||||||
|
target: /var/www/default/index.html
|
||||||
|
|
||||||
|
configs:
|
||||||
|
nginx_conf:
|
||||||
|
file: ../configs/node.conf
|
||||||
|
nginx_static:
|
||||||
|
file: ../content/index.html
|
||||||
|
|
Loading…
Reference in New Issue