You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of them valid but got different function.
Valid values: "1" = container; "2" = Swarm stack; "3" = Compose stack
Other information: Type "3" is limited to using the version "2" stack format (this is a docker/libcompose limitation).
As template encourage to use "type": 3 than mean the stack need overhaul, every existed stack yml file will renamed to docker-compose.yml , version: "2" at the top, and separate folder each.
This will not listed in web gui. As "type": 3 looking for docker-compose.yml but if set as "type": 2 this will listed at web gui because swarm type can use custom name.
Solution if gonna use "type": 3 consistently is separate each stack to separte folder such as:
stack/nginx-proxy-manager/docker-compose.yml
stack/raspberry-pi-monitor/docker-compose.yml
And update template json accordingly.
Also the stack yml file need to change from version 3 to version 2
version: "3.8"
services:
wg-easy:
environment:
# ⚠️ Required:
# Change this to your host's public address
- WG_HOST=raspberrypi.local
# Optional:
- PASSWORD=foobar123
- WG_PORT=51820
- WG_DEFAULT_ADDRESS=10.8.0.x
- WG_DEFAULT_DNS=1.1.1.1
- WG_ALLOWED_IPS=192.168.15.0/24, 10.0.1.0/24
to
version: "2"
services:
wg-easy:
environment:
# ⚠️ Required:
# Change this to your host's public address
- WG_HOST=raspberrypi.local
# Optional:
- PASSWORD=foobar123
- WG_PORT=51820
- WG_DEFAULT_ADDRESS=10.8.0.x
- WG_DEFAULT_DNS=1.1.1.1
- WG_ALLOWED_IPS=192.168.15.0/24, 10.0.1.0/24
In simple that is portainer confusion naming type,
compose ver 2 is the old one and portainer called "type": 3 for standlone stack
compose ver 3 the new one in portainer called "type": 2 for swarm type
As taken Portainer templating guide , there is two type of template need consider for.
Both of them valid but got different function.
Valid values: "1" = container; "2" = Swarm stack; "3" = Compose stack
Other information: Type "3" is limited to using the version "2" stack format (this is a docker/libcompose limitation).
As template encourage to use
"type": 3
than mean the stack need overhaul, every existed stack yml file will renamed todocker-compose.yml
,version: "2"
at the top, and separate folder each.Sample
Before
This will not listed in web gui. As
"type": 3
looking fordocker-compose.yml
but if set as"type": 2
this will listed at web gui because swarm type can use custom name.Solution if gonna use
"type": 3
consistently is separate each stack to separte folder such as:And update template json accordingly.
Also the stack yml file need to change from version 3 to version 2
to
In simple that is portainer confusion naming type,
refs:
Look at wordpress, it got type 2 and type 3, and respective files sample each.
The text was updated successfully, but these errors were encountered: