saleor / saleor-platform

All Saleor services started from a single repository with docker-compose.
BSD 3-Clause "New" or "Revised" License
650 stars 891 forks source link

`version` is obsolete #306

Open rafalohaki opened 7 months ago

rafalohaki commented 7 months ago

root@minifast:~/docker/saleor-platform# docker compose build WARN[0000] /root/docker/saleor-platform/docker-compose.yml: version is obsolete

reproduce: git clone https://github.com/saleor/saleor-platform.git cd saleor-platform docker compose build

docker --version Docker version 26.0.0, build 2ae903e Docker Compose version v2.25.0

amityweb commented 6 months ago

Other websites say tor remove version from the file, but then nothing happens when I type: docker compose build

I have wasted an entire day today faffing with Saleor and all I wanted was to install Stripe in the older version I had which I cant fix now I have upgraded it.

sorci2 commented 6 months ago

In Docker Compose version 1.27.0 and later, the version key is optional, start the migration after you did the docker compose build, and it will work ( at least worked for me )

amityweb commented 6 months ago

I think its working for me OK when I remove the version. I expected something visible to happen when I typed "docker compose build" but nothing did. But if I proceed with the instructions it seems work then.