Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.85k stars 44.16k forks source link

`docker compose up -d` errors with "service 'xyz' can't be used with 'extends' as it declare 'depends on' #8151

Open Fried-Squid opened 2 hours ago

Fried-Squid commented 2 hours ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

Linux

Which version of AutoGPT are you using?

Latest Release

What LLM Provider do you use?

Azure

Which area covers your issue best?

Installation and setup

What commit or version are you using?

198a1048e8b8f365180415dfc0fb02818111be87

Describe your issue.

Env: docker.io, docker-compose-v2 latest. Running Ubuntu 24.04 (Noble)

Upon following the install guide at: https://docs.agpt.co/autogpt/setup/docker/

I ran the following commands:

git clone https://github.com/Significant-Gravitas/AutoGPT --recurse-submodules              
cd AutoGPT 
cd autogpt_platform
cp supabase/docker/.env.example .env        

Then, upon docker compose up -d I get:

service "migrate" can't be used with extends as it declare depends_on or service "rest" can't be used with extends as it declare depends_on

(seems to be random which I get, though after rm -rf ./AutoGPT and re-cloning, the service in question changes)

From the Docker documentation: https://docs.docker.com/compose/how-tos/multiple-compose-files/extends/

Note: links, volumes_from, and depends_on are never shared between services using extends. These exceptions exist to avoid implicit dependencies—you always define links and volumes_from locally. This ensures dependencies between services are clearly visible when reading the current file. Defining these locally also ensures changes to the referenced file don’t result in breakage.

Perhaps the dockerfiles should be changed to include YAML references over the extends keyword? Not sure, as I have little experience with extends

Thanks

Upload Activity Log Content

No response

Upload Error Log Content

No response

Fried-Squid commented 2 hours ago

https://discordapp.com/channels/1092243196446249134/1092275629602394184/1288173471800492062

Added in Discord but figured it was best to do both