I’m following demo1 on https://www.youtube.com/watch?v=s8qYWPC6YdI but I’m getting the following error: command traefik error: failed to decode configuration from flags: entrypoints cannot be a standalone element (type static.EntryPoints)
docker-compose.yml
As you have figured out, you were previously using the syntax that was in effect before that change, and you found the new syntax to do it properly now, so it's all good.
As an aside note, in the future please try to use specific versions of the official Traefik image (e.g.: traefik:2.0.0-alpha7), instead of using the experimental one, as it makes things much harder to debug and reproduce otherwise.