full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Project Broken Due To Docker / Docker Compose - Unsupported Compose File Version - Root Additional Property Name Is Not Allowed

Open akamspsw opened this issue 3 years ago • 3 comments

This project does not work anymore.

With a clean cookiecutter, if you follow the directions in dockerswarm.rocks you get the error: "Unsupported compose file version 1.0"

This happens when you get to docker stack in /scripts/deploy.sh

I think it's because docker stack and docker compose are not compatible.

If you try to add a version to the top of the file after the compose config, i.e. ...

(echo -e "version: '3.8'\n"; DOMAIN=${DOMAIN?Variable not set} \
TRAEFIK_TAG=${TRAEFIK_TAG?Variable not set} \
STACK_NAME=${STACK_NAME?Variable not set} \
TAG=${TAG?Variable not set} \
docker-compose \
-f docker-compose.yml \
config)

... then you still get this error "(root) additional property **name** is not allowed"

akamspsw avatar Nov 12 '22 00:11 akamspsw

This is because tiangolo updated docker-with-compose image on 2022-11-10 with breaking changes to this project.

update .gitlab-ci.yml will fix....

tiangolo/docker-with-compose:2021-09-18

akamspsw avatar Nov 12 '22 02:11 akamspsw

Yep, there's a lot of things I have to update here, starting with migrating to SQLModel. But first I have to finish dinner things in SQLModel. 🤓

tiangolo avatar Nov 12 '22 06:11 tiangolo

Yep, there's a lot of things I have to update here, starting with migrating to SQLModel. But first I have to finish dinner things in SQLModel. 🤓

Glad to hear there are plans on the board to update this, I appreciate the project - thank you. I've been working on a project structure loosely based on your project for the last month or so. Do you have any major adjustments for the front end in mind at this stage, or is that loosely going to stay intact?

SobieskiCodes avatar Nov 21 '22 14:11 SobieskiCodes