Update roles/demolamp/files/demolamp.tpl

This commit is contained in:
2024-03-12 17:11:11 +08:00
parent a80d4df8dc
commit 09b7f0af2d

View File

@@ -1,7 +1,7 @@
version: '3.9'
services:
nginx:
image: nginx:{{ ansTagVer }}
image: {{ pvgnginx.imageName }}:{{ ansTagVer }}
ports:
- 80:80
environment:
@@ -18,8 +18,6 @@ services:
volume:
nocopy: true
deploy:
# mode: replicated
# replicas: 2
mode: global
placement:
constraints:
@@ -40,7 +38,7 @@ services:
- lnmp-demo
php-fpm:
image: php:{{ ansTagVer }}
image: {{ pvgphpfpm.imageName }}:{{ ansTagVer }}
ports:
- 9000:9000
volumes:
@@ -57,8 +55,6 @@ services:
networks:
- lnmp-demo
deploy:
# mode: replicated
# replicas: 2
mode: global
placement:
constraints:
@@ -97,12 +93,7 @@ volumes:
o: "addr=192.168.11.121,vers=4,soft,timeo=180,bg,tcp,rw"
device: "192.168.11.121:/phpconf"
#networks:
# lnmp-demo:
# external: true
# name: lnmp-demo
networks:
lnmp-demo:
driver: overlay
# external: true