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
I'm trying to build a stack from a git repository, my credentials are ok (github app PAT token), but I'm ending up with 1 issue when I click the "Deploy the stack" button : Top-level object must be a mapping
Expected Behavior
Deploy the stack properly !
Actual Behavior
Here is what I found on docker logs of portainer :
WRN github.com/portainer/portainer@v0.6.1-0.20240906003626-280ca22aebb2/pkg/libstack/compose/internal/composeplugin/composeplugin.go:171 > docker compose command failed | error="exit status 15" error_output="Top-level object must be a mapping\n" output=
Steps to Reproduce
Create a private git repo on GitHub for example
Fill authentication with your account or PAT token
Build...
Portainer logs or screenshots
2024/10/24 03:33PM WRN github.com/portainer/portainer@v0.6.1-0.20240906003626-280ca22aebb2/pkg/libstack/compose/internal/composeplugin/composeplugin.go:171 > docker compose command failed | error="exit status 15" error_output="Top-level object must be a mapping\n" output=
Portainer version
2.23.0
Portainer Edition
Business Edition (BE/EE) with Professional or Enterprise license
Before you start please confirm the following.
Problem Description
Hello !
I'm trying to build a stack from a git repository, my credentials are ok (github app PAT token), but I'm ending up with 1 issue when I click the "Deploy the stack" button : Top-level object must be a mapping
Expected Behavior
Deploy the stack properly !
Actual Behavior
Here is what I found on docker logs of portainer :
WRN github.com/portainer/portainer@v0.6.1-0.20240906003626-280ca22aebb2/pkg/libstack/compose/internal/composeplugin/composeplugin.go:171 > docker compose command failed | error="exit status 15" error_output="Top-level object must be a mapping\n" output=
Steps to Reproduce
Create a private git repo on GitHub for example
Fill authentication with your account or PAT token
Build...
Portainer logs or screenshots
2024/10/24 03:33PM WRN github.com/portainer/portainer@v0.6.1-0.20240906003626-280ca22aebb2/pkg/libstack/compose/internal/composeplugin/composeplugin.go:171 > docker compose command failed | error="exit status 15" error_output="Top-level object must be a mapping\n" output=
Portainer version
2.23.0
Portainer Edition
Business Edition (BE/EE) with Professional or Enterprise license
Platform and Version
Docker Compose version v2.29.7
OS and Architecture
Ubuntu 24
Browser
Brave
What command did you use to deploy Portainer?
services:
traefik:
image: traefik:v3.0
container_name: traefik
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/srv/trybecard/compose/src/traefik.toml:/etc/traefik/traefik.toml"
- "/srv/trybecard/compose/letsencrypt/acme.json:/acme.json"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(
mydomain.com
) && (PathPrefix(/api
) || PathPrefix(/dashboard
))"- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.entrypoints=websecure"
- "traefik.http.routers.api.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=admin:$$gIuXvvrT2Td0"
- "traefik.http.middlewares.strip-www.redirectregex.regex=^https?://(www\.)(.+)"
- "traefik.http.middlewares.strip-www.redirectregex.replacement=https://$${2}"
- "traefik.http.middlewares.strip-www.redirectregex.permanent=true"
- "--certificatesresolvers.default.acme.email=myemail"
- "--certificatesresolvers.default.acme.storage=letsencrypt/acme.json"
minio:
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
volumes:
- minio_storage:/data
db:
hostname: postgres
image: postgres
ports:
- 5432:5432
trybecardch:
image : username/myrepo:latest
container_name: dockerapp
volumes:
minio_storage: {}
postgres_data: {}
networks:
web:
external: true
Additional Information
I verified my compose.yaml file muuuultiple times, without success...
I don't know where it comes form because I tried to build a stack over https://github.com/docker/awesome-compose/blob/master/wordpress-mysql/compose.yaml and it works....
The text was updated successfully, but these errors were encountered: