ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services.celerybeat: 'profiles' Unsupported config option for services.celeryworker: 'profiles' Unsupported config option for services.initializer: 'profiles'

ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
Unsupported config option for services.celerybeat: ‘profiles’
Unsupported config option for services.celeryworker: ‘profiles’
Unsupported config option for services.initializer: ‘profiles’
Unsupported config option for services.mysql: ‘profiles’
Unsupported config option for services.nginx: ‘profiles’
Unsupported config option for services.postgres: ‘profiles’
Unsupported config option for services.rabbitmq: ‘profiles’
Unsupported config option for services.redis: ‘profiles’
Unsupported config option for services.uwsgi: ‘profiles’

Please add details about your Compose file, and maybe the command you’re using. Just dumping an error message here is not enough to help you.